From 90e105d2186fc96d9884857ac5fa4bc73e16705c Mon Sep 17 00:00:00 2001 From: james Date: Mon, 17 Oct 2005 13:20:21 +0000 Subject: Fixed double fork bug. Pre-2.1_beta5 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@656 e7ae566f-a301-0410-adde-c780ea21d3b5 --- openvpn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openvpn.h') diff --git a/openvpn.h b/openvpn.h index 78bb67b..a8d4f5e 100644 --- a/openvpn.h +++ b/openvpn.h @@ -346,9 +346,6 @@ struct context_2 struct user_state user_state; struct group_state group_state; - /* temporary variable */ - bool did_we_daemonize; - /* should we print R|W|r|w to console on packet transfers? */ bool log_rw; @@ -453,6 +450,9 @@ struct context struct plugin_list *plugins; bool plugins_owned; + /* set to true after we daemonize */ + bool did_we_daemonize; + /* level 1 context is preserved for SIGUSR1 restarts, but initialized for SIGHUP restarts */ -- cgit