diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:01:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-27 22:01:31 +0000 |
commit | 10457b90db925369739a900445b640364eda5e4c (patch) | |
tree | 6d6f18564291257738360d97712724868175167e /sysklogd | |
parent | f4d40c87d3a18fccb8c0946fc09f1d8f24a2bcf3 (diff) | |
download | busybox-w32-10457b90db925369739a900445b640364eda5e4c.tar.gz busybox-w32-10457b90db925369739a900445b640364eda5e4c.tar.bz2 busybox-w32-10457b90db925369739a900445b640364eda5e4c.zip |
make pidfile writing configurable.
[ui]toa_to_buf: change API. No users yet.
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
519 | signal(SIGALRM, do_mark); | 519 | signal(SIGALRM, do_mark); |
520 | alarm(G.markInterval); | 520 | alarm(G.markInterval); |
521 | #endif | 521 | #endif |
522 | remove_pidfile("/var/run/syslogd.pid"); | ||
522 | 523 | ||
523 | memset(&sunx, 0, sizeof(sunx)); | 524 | memset(&sunx, 0, sizeof(sunx)); |
524 | sunx.sun_family = AF_UNIX; | 525 | sunx.sun_family = AF_UNIX; |
@@ -645,6 +646,7 @@ int syslogd_main(int argc, char **argv) | |||
645 | bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); | 646 | bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); |
646 | } | 647 | } |
647 | umask(0); | 648 | umask(0); |
649 | write_pidfile("/var/run/syslogd.pid"); | ||
648 | do_syslogd(); | 650 | do_syslogd(); |
649 | /* return EXIT_SUCCESS; */ | 651 | /* return EXIT_SUCCESS; */ |
650 | } | 652 | } |