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

swap out os.system for subprocess (might fix the zombies that are being

left)
parent 8313a410
No related branches found
No related tags found
No related merge requests found
Pipeline #92226 passed
......@@ -2,6 +2,7 @@
from __future__ import print_function
import sys
import os
import subprocess
import time
import argparse
import re
......@@ -490,7 +491,8 @@ while True:
# Populate the command to run with the values provided
pid = os.fork()
if pid == 0:
sys.exit(os.system(command))
#sys.exit(os.system(command))
call(command, shell=True)
printLog("Forked '"+command+"' as "+str(pid), loglevels.INFO)
except KeyError as e:
......
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