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

This commit is contained in:
aiyion.prime 2021-07-15 09:11:51 +02:00
parent 1acc783a09
commit d513d001f4

View File

@ -208,6 +208,7 @@ M.subprocess.PIPE = 1
-- Execute a program found using command PATH search, like the shell. -- Execute a program found using command PATH search, like the shell.
-- Return the pid, as well as the I/O streams as pipes or nil on error. -- Return the pid, as well as the I/O streams as pipes or nil on error.
function M.subprocess.popen(path, argt, options) function M.subprocess.popen(path, argt, options)
argt = argt or {}
local childfds = {} local childfds = {}
local parentfds = {} local parentfds = {}
local stdiostreams = {stdin = 0, stdout = 1, stderr = 2} local stdiostreams = {stdin = 0, stdout = 1, stderr = 2}