syslogd & return code
greg
ustrel at free.fr
Tue Dec 27 10:32:04 UTC 2005
hi all.
I'm trying to make a custom distribution to be used for a network
oriented embedded system.
It is based upon an initng/busybox/udev combination.
When shutting down, initng complains about syslogd returning 1
A quick look at the code (busybox-1.1.0-pre1) , shows :
#################################################
static void quit_signal(int sig)
{
logMessage(LOG_SYSLOG | LOG_INFO, "System log daemon exiting.");
unlink(lfile);
#ifdef CONFIG_FEATURE_IPC_SYSLOG
ipcsyslog_cleanup();
#endif
exit(TRUE);
}
#################################################
This signal handler is connected to SIGINT, SIGTERM & SIGQUIT
Should not we exit with EXIT_SUCCESS code instead of TRUE ??
Regards,
gregor
More information about the busybox
mailing list