aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-01 21:10:56 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-01 21:10:56 +0000
commit225d5fe945bb6fc6d7a523b5944e96243a6b5038 (patch)
treed5c5a5cd7161344d514dbdd50bee42db4d50e376 /init.c
parentauth-pam change: link with -lpam rather (diff)
downloadopenvpn-225d5fe945bb6fc6d7a523b5944e96243a6b5038.tar.xz
Prevent SIGUSR1 or SIGHUP from causing program
exit from initial management hold. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1427 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-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);