diff options
author | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
commit | 30b216f774c2404a965807ddb93a4a4b2aaeac04 (patch) | |
tree | 2d4bbdadc263f495e358af0fda9baf5b02274c3b /libs/httpclient/luasrc | |
parent | 2baab00b19fc6eb4e0aca4da035292e37d94a640 (diff) |
Drop support for luaposix and bitlib (obsoleted by nixio)
Mark luci.fs as deprecated
Diffstat (limited to 'libs/httpclient/luasrc')
-rw-r--r-- | libs/httpclient/luasrc/httpclient/receiver.lua | 9 |
1 files changed, 4 insertions, 5 deletions
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 |