Use Popen to restart on macOS
This commit is contained in:
@@ -2233,7 +2233,7 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
|
|||||||
# https://bugs.python.org/issue19066
|
# https://bugs.python.org/issue19066
|
||||||
if NOFORK:
|
if NOFORK:
|
||||||
pass
|
pass
|
||||||
elif common.PLATFORM == 'Windows':
|
elif common.PLATFORM in ('Windows', 'Darwin'):
|
||||||
subprocess.Popen(args, cwd=os.getcwd())
|
subprocess.Popen(args, cwd=os.getcwd())
|
||||||
else:
|
else:
|
||||||
os.execv(exe, args)
|
os.execv(exe, args)
|
||||||
|
Reference in New Issue
Block a user