Windows bug fixes (#7740)

This commit is contained in:
mehrdadn
2020-03-30 20:39:23 -05:00
committed by GitHub
parent dc9b62e007
commit 8958728139
5 changed files with 32 additions and 10 deletions
+4 -3
View File
@@ -633,9 +633,10 @@ def start_reaper(fate_share=None):
# up other ray processes without killing the process group of the
# process that started us.
try:
os.setpgrp()
except (AttributeError, OSError) as e:
errcode = e.errno if isinstance(e, OSError) else None
if sys.platform != "win32":
os.setpgrp()
except OSError as e:
errcode = e.errno
if errcode == errno.EPERM and os.getpgrp() == os.getpid():
# Nothing to do; we're already a session leader.
pass