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