Tell local scheduler to ignore SIGCHLD so that workers don't become zombies. (#620)

This commit is contained in:
Robert Nishihara
2017-05-31 23:37:28 -07:00
committed by Philipp Moritz
parent 4d51ed37b2
commit 5f193afb87
+3
View File
@@ -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(