diff options
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/init.c b/src/init.c index 14f8db1a0..b2bb35e1a 100644 --- a/src/init.c +++ b/src/init.c @@ -484,14 +484,13 @@ int init_secondary(int ac, char **av) return -1; } } - if (!SupportedWindowsVersion()) {
- char *winver = GetWindowsVersion();
- alog("%s is not a supported version of Windows", winver);
- free(winver);
- return -1;
- }
- - if (!nofork) { + if (!SupportedWindowsVersion()) { +
char *winver = GetWindowsVersion(); +
alog("%s is not a supported version of Windows", winver); +
free(winver); +
return -1; +
} +
if (!nofork) { alog("Launching Anope into the background"); FreeConsole(); } @@ -527,7 +526,7 @@ int init_secondary(int ac, char **av) #else for (i = 1; i <= 31; i++) { #endif - signal(i, SIG_IGN); + signal(i, SIG_IGN); } #ifndef USE_THREADS |