From 225d5fe945bb6fc6d7a523b5944e96243a6b5038 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 1 Nov 2006 21:10:56 +0000 Subject: 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 --- init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'init.c') 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); -- cgit