do {
errno = 0;
pid = waitpid(WAIT_ANY, &status, WNOHANG);
- if (pid > 0) {
- debug("child %d terminated with status %x\n", pid, status);
- }
- } while ((pid > 0) && (errno == EINTR));
+ } while (pid > 0);
/* restore errno value */
errno = errno_save;
/* return */