uloop: retry waitpid on signal interrupt

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-05-17 13:27:44 +02:00
parent 6a75b3b643
commit b06cd8c58e

View file

@ -311,6 +311,9 @@ static void uloop_handle_processes(void)
while (1) {
pid = waitpid(-1, &ret, WNOHANG);
if (pid < 0 && errno == EINTR)
continue;
if (pid <= 0)
return;