aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/syslogd.c')
-rw-r--r--toys/pending/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/syslogd.c b/toys/pending/syslogd.c
index db2e52ee..7fb297f8 100644
--- a/toys/pending/syslogd.c
+++ b/toys/pending/syslogd.c
@@ -470,7 +470,7 @@ init_jumpin:
if (parse_config_file() == -1) goto clean_and_exit;
open_logfiles();
if (!(toys.optflags & FLAG_n)) {
- daemonize();
+ daemon(0, 0);
//don't daemonize again if SIGHUP received.
toys.optflags |= FLAG_n;
}