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:
parent
cd0139389c
commit
d8372a6846
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user