Spawn processes in background sessions (#6008)

Allows us to properly handle KeyboardInterrupts in interactive python interpreters.
This commit is contained in:
Edward Oakes 2019-10-25 13:01:35 -07:00 committed by GitHub
parent 1ce521a7f3
commit f8a6ed7832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,7 +442,8 @@ def start_ray_process(command,
env=modified_env,
cwd=cwd,
stdout=stdout_file,
stderr=stderr_file)
stderr=stderr_file,
preexec_fn=os.setsid)
return ProcessInfo(
process=process,