aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
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 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
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 236f1190d..84414439e 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -630,8 +630,12 @@ extern int syslogd_main(int argc, char **argv)
630 umask(0); 630 umask(0);
631 631
632 if (doFork == TRUE) { 632 if (doFork == TRUE) {
633#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
633 if (daemon(0, 1) < 0) 634 if (daemon(0, 1) < 0)
634 perror_msg_and_die("daemon"); 635 perror_msg_and_die("daemon");
636#else
637 error_msg_and_die("daemon not supported");
638#endif
635 } 639 }
636 doSyslogd(); 640 doSyslogd();
637 641