Page MenuHomeFreeBSD

D30894.1788416546.diff
No OneTemporary

Size
620 B
Referenced Files
None
Subscribers
None

D30894.1788416546.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
Thu, Sep 3, 6:22 AM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29505337
Default Alt Text
D30894.1788416546.diff (620 B)

Event Timeline