When launching apps, use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them

This commit is contained in:
Clement Lefebvre 2013-11-25 14:04:49 +00:00
parent cd0139389c
commit d8372a6846

View File

@ -32,7 +32,10 @@ def Execute( cmd , commandCwd=None):
try: try:
os.chdir( cwd ) os.chdir( cwd )
subprocess.Popen( cmd ) string = ' '.join(cmd)
string = string + " &"
#subprocess.Popen( cmd ) // use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them
os.system(string)
return True return True
except Exception, detail: except Exception, detail:
print detail print detail