Do not complain if interrupted by a signal
In start-stop-daemon and rc-schedules, we were printing out a warning if the nanosleep call was interrupted by a signal, but we did not treat this as an error situation other than displaying the message, so there is no need for the message.
This commit is contained in:
parent
7eb3975543
commit
2504a2c25b
@ -376,10 +376,7 @@ int run_stop_schedule(const char *applet,
|
||||
printf("\n");
|
||||
progressed = false;
|
||||
}
|
||||
if (errno == EINTR)
|
||||
eerror("%s: caught an"
|
||||
" interrupt", applet);
|
||||
else {
|
||||
if (errno != EINTR) {
|
||||
eerror("%s: nanosleep: %s",
|
||||
applet, strerror(errno));
|
||||
return 0;
|
||||
|
@ -996,9 +996,7 @@ int main(int argc, char **argv)
|
||||
ts.tv_sec = start_wait / 1000;
|
||||
ts.tv_nsec = (start_wait % 1000) * ONE_MS;
|
||||
if (nanosleep(&ts, NULL) == -1) {
|
||||
if (errno == EINTR)
|
||||
eerror("%s: caught an interrupt", applet);
|
||||
else {
|
||||
if (errno != EINTR) {
|
||||
eerror("%s: nanosleep: %s",
|
||||
applet, strerror(errno));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user