diff --git a/main.cpp b/main.cpp index d62d1b43..9caf94cf 100644 --- a/main.cpp +++ b/main.cpp @@ -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");