mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +08:00
Reset the SIGCHLD handler after forking a worker to avoid influencing the worker. (#713)
This commit is contained in:
committed by
Philipp Moritz
parent
66734847bb
commit
6c45657280
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user