diff options
Diffstat (limited to 'src/rc/rc-logger.c')
-rw-r--r-- | src/rc/rc-logger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index 46093433..0545f826 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -191,7 +191,7 @@ void rc_logger_open (const char *level) buffer = xmalloc (sizeof (char) * BUFSIZ); selfd = rc_logger_tty > signal_pipe[0] ? rc_logger_tty : signal_pipe[0]; - while (1) { + for (;;) { FD_ZERO (&rset); FD_SET (rc_logger_tty, &rset); FD_SET (signal_pipe[0], &rset); @@ -244,6 +244,7 @@ void rc_logger_open (const char *level) system (MOVELOG); exit (0); + /* NOTREACHED */ default: setpgid (rc_logger_pid, 0); fd_stdout = dup (STDOUT_FILENO); |