From ad2ef75cbed4804f9f1d24419b9bc77fbe75a27a Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 22 Oct 2011 11:20:50 -0400 Subject: Fixed a race condition with installing signal handlers and forking --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') 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 @@ -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; -- cgit