Mercurial > hg > toybox
diff toys/pending/syslogd.c @ 1391:6a06541c090c draft
Use libc daemon() instead of pending daemonize.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 17 Jul 2014 22:50:49 -0500 |
parents | 0ecfaa7022e8 |
children | ca358f8731ab |
line wrap: on
line diff
--- a/toys/pending/syslogd.c Wed Jul 16 20:43:58 2014 -0500 +++ b/toys/pending/syslogd.c Thu Jul 17 22:50:49 2014 -0500 @@ -470,7 +470,7 @@ 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; }