diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-28 07:40:39 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-28 07:40:39 +0000 |
commit | 62acfd880c121bebbe52f60a94e5d7e20ad933ca (patch) | |
tree | ad6b608081a4dde117563a1f1e9a6e3892a8752c /sysklogd/syslogd.c | |
parent | d6d5411285a3c1247fda3b6912cee6754e07167d (diff) | |
download | busybox-w32-62acfd880c121bebbe52f60a94e5d7e20ad933ca.tar.gz busybox-w32-62acfd880c121bebbe52f60a94e5d7e20ad933ca.tar.bz2 busybox-w32-62acfd880c121bebbe52f60a94e5d7e20ad933ca.zip |
last_patch95 from vodz:
Hi.
Last patch have new libbb function
vfork_rexec() for can use daemon() to uClinux system.
This patched daemons: syslog, klogd, inetd, crond.
This not tested! I havn`t this systems.
Also. Previous patch for feature request MD5 crypt password for
httpd don`t sended to this mailist on 07/15/03
(mailist have Pytom module problem?).
The previous patch included, and have testing.
--w
vodz
git-svn-id: svn://busybox.net/trunk/busybox@7119 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 67324116d..c554536c8 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -632,11 +632,12 @@ extern int syslogd_main(int argc, char **argv) | |||
632 | 632 | ||
633 | umask(0); | 633 | umask(0); |
634 | 634 | ||
635 | #if ! defined(__uClinux__) | ||
636 | if ((doFork == TRUE) && (daemon(0, 1) < 0)) { | 635 | if ((doFork == TRUE) && (daemon(0, 1) < 0)) { |
637 | bb_perror_msg_and_die("daemon"); | 636 | bb_perror_msg_and_die("daemon"); |
638 | } | 637 | #if ! defined(__uClinux__) |
638 | vfork_daemon_rexec(argc, argv, "-n"); | ||
639 | #endif | 639 | #endif |
640 | } | ||
640 | doSyslogd(); | 641 | doSyslogd(); |
641 | 642 | ||
642 | return EXIT_SUCCESS; | 643 | return EXIT_SUCCESS; |