Use Popen to restart on macOS

This commit is contained in:
JonnyWong16 2020-07-03 19:48:27 -07:00
parent dbd2d28877
commit 2625ef5fb9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2233,7 +2233,7 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
# https://bugs.python.org/issue19066
if NOFORK:
pass
elif common.PLATFORM == 'Windows':
elif common.PLATFORM in ('Windows', 'Darwin'):
subprocess.Popen(args, cwd=os.getcwd())
else:
os.execv(exe, args)