fixup! gluon-core: implement popen3() in gluon/util.lua

This commit is contained in:
aiyion.prime 2021-07-06 11:24:05 +02:00
parent 12d2f3a252
commit ba2886e487

View File

@ -218,10 +218,10 @@ function M.popen3(policies, path, ...)
-- intern: r0, w1, w2
-- extern: w0, r1, r2
local pid = posix_unistd.fork()
local pid, errmsg, errnum = posix_unistd.fork()
if pid == nil then
return nil
return nil, errmsg, errnum
elseif pid == 0 then
local null=-1
if M.contains(policies, M.PipePolicies.DISCARD) then