aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc-schedules.c5
-rw-r--r--src/rc/start-stop-daemon.c4
2 files changed, 2 insertions, 7 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;
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 33f886c4..a96b29f0 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -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;