aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c5
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;