(vsyslog): Open console with O_NOCTTY.
authordrepper <drepper>
Sun, 26 Oct 1997 18:58:03 +0000 (18:58 +0000)
committerdrepper <drepper>
Sun, 26 Oct 1997 18:58:03 +0000 (18:58 +0000)
misc/syslog.c

index 7aa29da..0984845 100644 (file)
@@ -210,7 +210,7 @@ vsyslog(pri, fmt, ap)
             * is the one from the syslogd failure.
             */
            if (LogStat & LOG_CONS &&
-               (fd = open(_PATH_CONSOLE, O_WRONLY, 0)) >= 0)
+               (fd = open(_PATH_CONSOLE, O_WRONLY|O_NOCTTY, 0)) >= 0)
              {
                dprintf (fd, "%s\r\n", buf + msgoff);
                (void)close(fd);