Skip to content

Commit

Permalink
main: retry waitpid on EINTR
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Jan 24, 2022
1 parent bd651ee commit 5181bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void run_reaper ()

do
r = waitpid (-1, NULL, 0);
while (r > 0 || errno != ECHILD);
while (r > 0 || (errno != ECHILD && errno != EINTR));
_exit (EXIT_SUCCESS);
}

Expand Down

0 comments on commit 5181bba

Please sign in to comment.