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:
J. Burfeind 2021-07-13 08:58:51 +02:00 committed by GitHub
parent 1d7fc2dd43
commit f68a2eb478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)