mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Spawn processes in background sessions (#6008)
Allows us to properly handle KeyboardInterrupts in interactive python interpreters.
This commit is contained in:
parent
1ce521a7f3
commit
f8a6ed7832
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue