From 9d5ab768611fc944efcc57535dd94fc0f598a6e9 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 24 Apr 2005 06:15:14 +0000 Subject: [PATCH] Added output for printing pid git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@179 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/znc.cpp b/znc.cpp index efa19168..cca147ee 100644 --- a/znc.cpp +++ b/znc.cpp @@ -129,14 +129,17 @@ void CZNC::ReleaseISpoof() { bool CZNC::WritePidFile(int iPid) { if (!m_sPidFile.empty()) { CFile File(m_sPidFile); + CUtils::PrintAction("Writing pid file [" + m_sPidFile + "]"); if (File.Open(O_WRONLY | O_TRUNC | O_CREAT)) { File.Write(CUtils::ToString(iPid) + "\n"); File.Close(); + CUtils::PrintStatus(true); return true; } } + CUtils::PrintStatus(false); return false; }