From 30b216f774c2404a965807ddb93a4a4b2aaeac04 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 21 Jun 2009 13:42:26 +0000 Subject: Drop support for luaposix and bitlib (obsoleted by nixio) Mark luci.fs as deprecated --- libs/httpclient/luasrc/httpclient/receiver.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libs/httpclient/luasrc') diff --git a/libs/httpclient/luasrc/httpclient/receiver.lua b/libs/httpclient/luasrc/httpclient/receiver.lua index ad2ac8db7..cac96cd95 100644 --- a/libs/httpclient/luasrc/httpclient/receiver.lua +++ b/libs/httpclient/luasrc/httpclient/receiver.lua @@ -114,13 +114,12 @@ end local function splice_sync(sock, pipeout, pipein, file, cb) local os = require "os" - local posix = require "posix" local ssize = 65536 local smode = nixio.splice_flags("move", "more") local stat -- This is probably the only forking http-client ;-) - local pid, code, msg = posix.fork() + local pid, code, msg = nixio.fork() if not pid then return pid, code, msg elseif pid == 0 then @@ -149,11 +148,11 @@ local function splice_sync(sock, pipeout, pipein, file, cb) file:close() if not stat then - posix.kill(pid) - posix.wait(pid) + nixio.kill(pid, 15) + nixio.wait(pid) return stat, code, msg else - pid, msg, code = posix.wait(pid) + pid, msg, code = nixio.wait(pid) if msg == "exited" then if code == 0 then return true -- cgit v1.2.3