From 67e9b0ecd85afdf8f6c5efad30a453cb8213bd96 Mon Sep 17 00:00:00 2001 From: prozacx Date: Tue, 10 May 2005 21:43:03 +0000 Subject: [PATCH] Added a message when not forking because we are in debug mode git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@258 726aef4b-f618-498e-8847-2d620e286838 --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 916256de..1e9759c8 100644 --- a/main.cpp +++ b/main.cpp @@ -159,7 +159,9 @@ int main(int argc, char** argv) { return 1; } -#ifndef _DEBUG +#ifdef _DEBUG + CUtils::PrintMessage("Staying open for debugging"); +#else CUtils::PrintAction("Forking into the background"); int iPid = fork(); @@ -182,7 +184,6 @@ int main(int argc, char** argv) { close(0); open("/dev/null", O_RDONLY); close(1); open("/dev/null", O_WRONLY); close(2); open("/dev/null", O_WRONLY); - #endif struct sigaction sa;