mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user