X-Git-Url: http://git.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=uloop.c;h=45f7c5d83858673885a1c602a6aa9ff189da8cdf;hp=6ef7210fae375cba63b28e6f6d7ca0b0b444f126;hb=b06cd8c58e276a44fbe19f9ed5b1a7a74e5ca4e3;hpb=6a75b3b6437d3c98d852c1bca131c8f81646f2f5 diff --git a/uloop.c b/uloop.c index 6ef7210..45f7c5d 100644 --- a/uloop.c +++ b/uloop.c @@ -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;