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
This commit is contained in:
prozacx
2005-05-10 21:43:03 +00:00
parent 956f203b6e
commit 67e9b0ecd8
+3 -2
View File
@@ -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;