The syslog_daemon now ignores zero length messages, and the kernel's syslog
mechanism doesn't send them out any longer. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16153 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -431,6 +431,12 @@ syslog_sender(void *data)
|
||||
restore_interrupts(state);
|
||||
}
|
||||
|
||||
if (length == 0) {
|
||||
// the buffer we came here for might have been sent already
|
||||
bufferPending = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
error = write_port_etc(port, SYSLOG_MESSAGE, sSyslogMessage,
|
||||
sizeof(struct syslog_message) + length, B_RELATIVE_TIMEOUT, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user