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

This commit is contained in:
aiyion.prime 2021-07-06 10:55:38 +02:00
parent daa95f1ac7
commit fd6c77d134

View File

@ -224,7 +224,7 @@ function M.popen3(policies, path, ...)
if pid == nil then if pid == nil then
return nil return nil
elseif pid == 0 then elseif pid == 0 then
local null=-1; local null=-1
if M.contains(policies, M.PipePolicies.DISCARD) then if M.contains(policies, M.PipePolicies.DISCARD) then
-- only open, if there's anything to discard -- only open, if there's anything to discard
null = posix_fcntl.open('/dev/null', posix_fcntl.O_WRONLY) null = posix_fcntl.open('/dev/null', posix_fcntl.O_WRONLY)