timespec_store(&ts, until - n);
if (sigtimedwait(&mask, NULL, &ts) != SIGCHLD)
- log_warning("Failed: sigtimedwait did not return SIGCHLD: %m");
+ if (errno != EAGAIN)
+ log_warning("Failed: sigtimedwait did not return SIGCHLD: %m");
}
finish:
timespec_store(&ts, until - n);
if (sigtimedwait(&mask, NULL, &ts) != SIGCHLD)
- log_warning("Failed: sigtimedwait did not return SIGCHLD: %m");
+ if (errno != EAGAIN)
+ log_warning("Failed: sigtimedwait did not return SIGCHLD: %m");
}
finish: