Skip to content

Commit

Permalink
Don't terminate on waitpid error in SIGCHLD handler (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranciszkiewicz authored Feb 18, 2021
1 parent aa972ec commit 18eaf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/init-container/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static void handle_sigchld(void) {
pid_t w_pid = waitpid(child_pid, NULL, WNOHANG);
if (w_pid != child_pid) {
fprintf(stderr, "Error at waitpid: %d: %m\n", w_pid);
die();
return;
}

struct process_desc* proc_desc = find_process_by_pid(child_pid);
Expand Down

0 comments on commit 18eaf8c

Please sign in to comment.