X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=sysklogd%2Fsyslogd.c;h=76a446b6a8f7770fb9c4163dddcbfe71bc5852bb;hb=f443bffd3c24c4b7fcbc0472c75e747e26c24fef;hp=51627bd823de1d46234562888bef87c7119686e5;hpb=5a142025d372ae5dff7d7cf98f442edaafd1dc30;p=oweals%2Fbusybox.git diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 51627bd82..76a446b6a 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -519,6 +519,7 @@ static void do_syslogd(void) signal(SIGALRM, do_mark); alarm(G.markInterval); #endif + remove_pidfile("/var/run/syslogd.pid"); memset(&sunx, 0, sizeof(sunx)); sunx.sun_family = AF_UNIX; @@ -645,6 +646,7 @@ int syslogd_main(int argc, char **argv) bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); } umask(0); + write_pidfile("/var/run/syslogd.pid"); do_syslogd(); /* return EXIT_SUCCESS; */ }