[PATCH/RFC] teach bb_xx_msg to optionally send msgs to syslog

Denis Vlasenko vda.linux at googlemail.com
Wed Sep 6 18:10:29 UTC 2006


On Wednesday 06 September 2006 19:40, Rob Landley wrote:
> > I thought that having openlog done by applet's main() is okay
> > (and most syslog-capable applets already have this, I think).
> 
> It's not needed.  The file handle to the log is cached in a static inside the 
> library, and syslog() will open it if you haven't called openlog().  The call 
> to openlog() basically just sets some default values.

I know that syslog() works without openlog(). However for busybox
it may result in "busybox" being used as application name.
Explicit openlog() fixes that.
--
vda



More information about the busybox mailing list