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/runscript.c | |
parent | 8e7868d80f4f45bd360765fc32780293231db831 (diff) |
Don't abort select when on signals
Diffstat (limited to 'src/runscript.c')
-rw-r--r-- | src/runscript.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runscript.c b/src/runscript.c index 3a9c9d7b..2a41c9ba 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -374,9 +374,10 @@ static bool svc_exec (const char *service, const char *arg1, const char *arg2) retval = select (MAX (stdout_pipes[0], stderr_pipes[0]) + 1, &fds, 0, 0, 0); if (retval < 0) { - if (errno != EINTR) + if (errno != EINTR) { eerror ("select: %s", strerror (errno)); - break; + break; + } } else if (retval) { ssize_t nr; |