diff options
| author | David Malone <dwmalone@FreeBSD.org> | 2002-03-09 11:38:01 +0000 |
|---|---|---|
| committer | David Malone <dwmalone@FreeBSD.org> | 2002-03-09 11:38:01 +0000 |
| commit | 94998878b71fe0a0f28b2a34d2086bcd45d86167 (patch) | |
| tree | c8adb6bff42d2f6dfb0136c69fa584c42466875d /lib/libc/gen/syslog.c | |
| parent | 93581d744509735052c4832513b12390b1613332 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/syslog.c')
| -rw-r--r-- | lib/libc/gen/syslog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 90fd9042cc0d..11ae5b56fe83 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -255,12 +255,12 @@ vsyslog(pri, fmt, ap) return; /* - * Output the message to the console; don't worry about blocking, - * if console blocks everything will. Make sure the error reported - * is the one from the syslogd failure. + * Output the message to the console; try not to block + * as a blocking console should not stop other processes. + * Make sure the error reported 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_NONBLOCK, 0)) >= 0) { struct iovec iov[2]; struct iovec *v = iov; |
