aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 6af2121c..11432164 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -456,7 +456,7 @@ static bool svc_exec (const char *arg1, const char *arg2)
selfd = MAX (master_tty, signal_pipe[0]) + 1;
buffer = xmalloc (sizeof (char) * BUFSIZ);
- while (1) {
+ for (;;) {
FD_ZERO (&rset);
FD_SET (signal_pipe[0], &rset);
if (master_tty >= 0)