Also write a pid file when we were compiled with --enable-debug

Thanks again to SilverLeo for this patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@947 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-02-08 16:37:43 +00:00
parent f495acd110
commit f035753fc3
+4 -1
View File
@@ -197,7 +197,10 @@ int main(int argc, char** argv) {
}
#ifdef _DEBUG
CUtils::PrintMessage("Staying open for debugging");
int iPid = getpid();
CUtils::PrintMessage("Staying open for debugging [pid: " + CString(iPid) + "]");
pZNC->WritePidFile(iPid);
#else
CUtils::PrintAction("Forking into the background");