aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index d23272c..1712cb2 100644
--- a/init.c
+++ b/init.c
@@ -447,6 +447,7 @@ possibly_become_daemon (const struct options *options, const bool first_time)
ASSERT (!options->inetd);
if (daemon (options->cd_dir != NULL, options->log) < 0)
msg (M_ERR, "daemon() failed");
+ restore_signal_state ();
if (options->log)
set_std_files_to_null (true);