summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-22 11:20:50 -0400
committerAdam <Adam@anope.org>2011-10-22 11:20:50 -0400
commitad2ef75cbed4804f9f1d24419b9bc77fbe75a27a (patch)
tree5b153a345df5dff2de4a540a8bb1996f7c7b8a14 /src/main.cpp
parent6ce9010324f7394fc31eba8a3fc938c03b134025 (diff)
Fixed a race condition with installing signal handlers and forking
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 26d4c29c0..b115137ea 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -46,7 +46,6 @@ bool nothird = false; /* -nothrid */
bool noexpire = false; /* -noexpire */
bool protocoldebug = false; /* -protocoldebug */
Anope::string binary_dir; /* Used to store base path for Anope */
-static int return_code = 0;
#ifdef _WIN32
# include <process.h>
@@ -55,6 +54,7 @@ static int return_code = 0;
/* Set to 1 if we are to quit */
bool quitting = false;
+int return_code = 0;
/* Set to true if we are restarting */
bool restarting = false;