Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152007261
D30894.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
D30894.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30894: syslog(3): log to console if openlog() failed
Attached
Detach File
Event Timeline
Log In to Comment