avoid leaving a zombie process for --onready (#462)
Popen() needs to be used with 'with' or have .wait() called or be destroyed, otherwise there is a zombie child that sticks around until the object is GC'd.
This commit is contained in:
parent
23b9d3af49
commit
9d0dd7ab11
1 changed files with 2 additions and 2 deletions
|
@ -1951,7 +1951,7 @@ def main(launch_args,start_server=True):
|
||||||
def onready_subprocess():
|
def onready_subprocess():
|
||||||
import subprocess
|
import subprocess
|
||||||
print("Starting Post-Load subprocess...")
|
print("Starting Post-Load subprocess...")
|
||||||
subprocess.Popen(args.onready[0], shell=True)
|
subprocess.run(args.onready[0], shell=True)
|
||||||
timer_thread = threading.Timer(1, onready_subprocess) #1 second delay
|
timer_thread = threading.Timer(1, onready_subprocess) #1 second delay
|
||||||
timer_thread.start()
|
timer_thread.start()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue