Update package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
Co-authored-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
1d7fc2dd43
commit
f68a2eb478
@ -224,7 +224,7 @@ function M.subprocess.popen(path, argt, options)
|
|||||||
return nil, errmsg, errnum
|
return nil, errmsg, errnum
|
||||||
elseif pid == 0 then
|
elseif pid == 0 then
|
||||||
local null = -1
|
local null = -1
|
||||||
local stdiostreams = {["stdin"] = 0, ["stdout"] = 1, ["stderr"] = 2}
|
local stdiostreams = {stdin = 0, stdout = 1, stderr = 2}
|
||||||
if M.contains(options, M.subprocess.DEVNULL) then
|
if M.contains(options, M.subprocess.DEVNULL) 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_RDWR)
|
null = posix_fcntl.open('/dev/null', posix_fcntl.O_RDWR)
|
||||||
|
Loading…
Reference in New Issue
Block a user