Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [thorpej-syslogd-hack-branch] src/usr.sbin/syslogd
Module Name: src
Committed By: thorpej
Date: Thu Nov 18 16:11:04 UTC 2004
Modified Files:
src/usr.sbin/syslogd [thorpej-syslogd-hack-branch]: syslogd.c
Log Message:
Fix a race condition between syslogd and logging sub-processes:
When sending a message to a pipe, if the command exits after e.g. a single
line of input, we might try to send it another message line before we get
the SIGCHLD event and reap the sub-process, meaning that we'll have stale
state and get an EPIPE.
So, if we get an EPIPE, attempt to re-open the pipe and send the message
line again.
To generate a diff of this commit:
cvs rdiff -r1.69.2.33 -r1.69.2.34 src/usr.sbin/syslogd/syslogd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index