diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-28 05:12:20 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-28 05:12:20 +0000 |
commit | 79362aa78e62f5d1539b61ac300328c7235b1f0b (patch) | |
tree | 5dbf1995f603a95960c0ef94558954091ce7beef /sysklogd/klogd.c | |
parent | b71780b77e18183cdb25fc9402a786370bc7dbd6 (diff) | |
download | busybox-w32-79362aa78e62f5d1539b61ac300328c7235b1f0b.tar.gz busybox-w32-79362aa78e62f5d1539b61ac300328c7235b1f0b.tar.bz2 busybox-w32-79362aa78e62f5d1539b61ac300328c7235b1f0b.zip |
Add in some (theoretical) uClinux support. Some init cleanups
git-svn-id: svn://busybox.net/trunk/busybox@3596 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 33bc783fe..52a815d56 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -136,8 +136,12 @@ extern int klogd_main(int argc, char **argv) | |||
136 | } | 136 | } |
137 | 137 | ||
138 | if (doFork == TRUE) { | 138 | if (doFork == TRUE) { |
139 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) | ||
139 | if (daemon(0, 1) < 0) | 140 | if (daemon(0, 1) < 0) |
140 | perror_msg_and_die("daemon"); | 141 | perror_msg_and_die("daemon"); |
142 | #else | ||
143 | error_msg_and_die("daemon not supported"); | ||
144 | #endif | ||
141 | } | 145 | } |
142 | doKlogd(); | 146 | doKlogd(); |
143 | 147 | ||