https://bugzilla.novell.com/show_bug.cgi?id=679671
https://bugzilla.novell.com/show_bug.cgi?id=679671#c4
--- Comment #4 from Peter Conrad 2011-04-14 09:56:55 UTC ---
I think I found a race condition using strace on blogd + startpar. This is what
happens:
* blogd creates /dev/blog
* /etc/init.d/halt runs /etc/init.d/rc5.d/K*
* (for some reason) blogd receives SIGSYS
* blogd continues reading from stdin + /dev/blog for max. 3 seconds
* meanwhile, /etc/init.d/halt continues to execute startpar, which opens
/dev/blog for writing
* blogd closes /dev/blog
* startpar tries to write to the previously opened /dev/blog, receives SIGPIPE
+ exits
Making /etc/init.d/halt sleep for 1-2 seconds before executing startpar fixes
the race. Catching + ignoring SIGPIPE should work, too. Dunno what's best.
Btw, this was tested with the latest sysvinit-tools-2.88-37.45.1.x86_64 .
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.