aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-schedules.c
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-11-14 17:44:03 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-11-15 14:03:06 -0600
commit2504a2c25bc0587b36d81a2d85c203b20e2d40cf (patch)
treeb88b7bcdb370aa813deec2d6af55e05f52be1773 /src/rc/rc-schedules.c
parent7eb3975543eafd44c6946ca5a76812aa0d7a7303 (diff)
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.
Diffstat (limited to 'src/rc/rc-schedules.c')
-rw-r--r--src/rc/rc-schedules.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c
index f7ef20fb..84c7ea18 100644
--- a/src/rc/rc-schedules.c
+++ b/src/rc/rc-schedules.c
@@ -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;