mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:38:18 +08:00
Spawn processes in background sessions (#6008)
Allows us to properly handle KeyboardInterrupts in interactive python interpreters.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user