From c1d6bfc721eff57798317036004b0d87ce85a068 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 25 Apr 2007 18:12:49 +0000 Subject: Don't abort select when on signals --- src/runscript.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/runscript.c') 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; -- cgit v1.2.3