summaryrefslogtreecommitdiffstats
path: root/openvpn.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-17 13:20:21 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-17 13:20:21 +0000
commit90e105d2186fc96d9884857ac5fa4bc73e16705c (patch)
tree086806f81c70847361e13421950076ad0cd06855 /openvpn.h
parente1f07509eb84d0c523d3fe882ed1b963abb686d4 (diff)
downloadopenvpn-90e105d2186fc96d9884857ac5fa4bc73e16705c.tar.gz
openvpn-90e105d2186fc96d9884857ac5fa4bc73e16705c.tar.xz
openvpn-90e105d2186fc96d9884857ac5fa4bc73e16705c.zip
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
Diffstat (limited to 'openvpn.h')
-rw-r--r--openvpn.h6
1 files changed, 3 insertions, 3 deletions
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 */