diff options
author | Roy Marples <roy@marples.name> | 2007-04-25 18:12:49 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-25 18:12:49 +0000 |
commit | c1d6bfc721eff57798317036004b0d87ce85a068 (patch) | |
tree | 3f28cc1d3eead082ba52ad5808fea91f67149fd5 /src/start-stop-daemon.c | |
parent | 8e7868d80f4f45bd360765fc32780293231db831 (diff) |
Don't abort select when on signals
Diffstat (limited to 'src/start-stop-daemon.c')
-rw-r--r-- | src/start-stop-daemon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index 6bf54138..f4f0f99e 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -390,9 +390,10 @@ static int run_stop_schedule (const char *exec, const char *cmd, if (select (0, 0, 0, 0, &tv) < 0) { if (errno == EINTR) eerror ("%s: caught an interupt", progname); - else + else { eerror ("%s: select: %s", progname, strerror (errno)); - return (0); + return (0); + } } if (gettimeofday (&now, NULL) != 0) { |