Page MenuHomeFreeBSD

D30894.id.diff
No OneTemporary

D30894.id.diff

Index: lib/libc/gen/syslog.c
===================================================================
--- lib/libc/gen/syslog.c
+++ lib/libc/gen/syslog.c
@@ -345,8 +345,9 @@
* 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.
+ * We also log to the console if openlog() failed (i.e. LogFile == -1).
*/
- if (LogStat & LOG_CONS &&
+ if (((LogStat & LOG_CONS) || LogFile == -1) &&
(fd = _open(_PATH_CONSOLE, O_WRONLY|O_NONBLOCK|O_CLOEXEC, 0)) >=
0) {
struct iovec iov[2];

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 13, 1:48 AM (10 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31387178
Default Alt Text
D30894.id.diff (620 B)

Event Timeline