Subject: CVS commit: [thorpej-syslogd-hack-branch] src/usr.sbin/syslogd
To: None <>
From: Jason R Thorpe <>
List: source-changes
Date: 11/18/2004 16:11:04
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.