[BusyBox] Re: syslogd sometimes dies writing to remote logger
Larry Doolittle
ldoolitt at recycle.lbl.gov
Tue Apr 2 09:20:05 UTC 2002
> BTW, looking through the code, I noticed that the MARK message is
> written from inside a signal handler. I think, but can't be sure, the
> crash happened at the time a MARK was expected. I've restarted syslogd
> without MARK writing to see what happens.
> Is the code kosher? I was taught way back in the early days of Unix that
> one should not do anything more in a signal handler than setting a flag.
That's old-style paranoia. The SUS2 sigaction page
http://www.opengroup.org/onlinepubs/007908799/xsh/sigaction.html
lists 76 base functions that are permitted inside signal handlers.
write() is on the list.
- Larry
More information about the busybox
mailing list