mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 03:19:03 +08:00
Tell local scheduler to ignore SIGCHLD so that workers don't become zombies. (#620)
This commit is contained in:
committed by
Philipp Moritz
parent
4d51ed37b2
commit
5f193afb87
@@ -1130,6 +1130,9 @@ void start_server(const char *node_ip_address,
|
||||
/* Ignore SIGPIPE signals. If we don't do this, then when we attempt to write
|
||||
* to a client that has already died, the local scheduler could die. */
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
/* Ignore SIGCHLD signals. If we don't do this, then worker processes will
|
||||
* become zombies instead of dying gracefully. */
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
int fd = bind_ipc_sock(socket_name, true);
|
||||
event_loop *loop = event_loop_create();
|
||||
g_state = LocalSchedulerState_init(
|
||||
|
||||
Reference in New Issue
Block a user