Reset the SIGCHLD handler after forking a worker to avoid influencing the worker. (#713)

This commit is contained in:
Robert Nishihara
2017-07-07 14:50:37 +00:00
committed by Philipp Moritz
parent 66734847bb
commit 6c45657280
+3
View File
@@ -220,6 +220,9 @@ void start_worker(LocalSchedulerState *state, ActorID actor_id) {
return;
}
/* Reset the SIGCHLD handler so that it doesn't influence the worker. */
signal(SIGCHLD, SIG_DFL);
char id_string[ID_STRING_SIZE];
ObjectID_to_string(actor_id, id_string, ID_STRING_SIZE);
/* Figure out how many arguments there are in the start_worker_command. */