summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorEric Andersen2001-10-28 05:12:20 +0000
committerEric Andersen2001-10-28 05:12:20 +0000
commit72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71 (patch)
tree5dbf1995f603a95960c0ef94558954091ce7beef /sysklogd
parent9af363fe20002c7390966d4b71fcdee27b3686ba (diff)
downloadbusybox-72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71.zip
busybox-72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71.tar.gz
Add in some (theoretical) uClinux support. Some init cleanups
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/klogd.c4
-rw-r--r--sysklogd/syslogd.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 33bc783..52a815d 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -136,8 +136,12 @@ extern int klogd_main(int argc, char **argv)
}
if (doFork == TRUE) {
+#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
if (daemon(0, 1) < 0)
perror_msg_and_die("daemon");
+#else
+ error_msg_and_die("daemon not supported");
+#endif
}
doKlogd();
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 236f119..8441443 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -630,8 +630,12 @@ extern int syslogd_main(int argc, char **argv)
umask(0);
if (doFork == TRUE) {
+#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
if (daemon(0, 1) < 0)
perror_msg_and_die("daemon");
+#else
+ error_msg_and_die("daemon not supported");
+#endif
}
doSyslogd();