Skip to content
Snippets Groups Projects
Commit 8d4e03af authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

missed where in the docs it said options "should be 0 for normal

operation"
parent 0630e6e8
No related branches found
No related tags found
No related merge requests found
Pipeline #92235 passed
......@@ -491,12 +491,12 @@ while True:
# Populate the command to run with the values provided
pid = os.fork()
if pid == 0:
proc = subprocess.call(command, shell=True)
proc = subprocess.run(command.split(' '), shell=True)
sys.exit(proc.returncode)
printLog("Forked '"+command+"' as "+str(pid), loglevels.INFO)
# Wait for the subprocess to finish before launching any more
os.waitpid(pid, os.WEXITED | os.WSTOPPED)
os.waitpid(pid, 0)
except KeyError as e:
# No valid operation messages were found
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment