From ca3a1f2da5491066c4e97e1bdcc247f570a70574 Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 18 Dec 2009 17:06:47 +0000 Subject: [PATCH] Before restarting ZNC, do a clean shutdown That way e.g. the ISpoofFile's content is restored and the pid file deleted. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1681 726aef4b-f618-498e-8847-2d620e286838 --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index ac826657..227837ff 100644 --- a/main.cpp +++ b/main.cpp @@ -291,6 +291,7 @@ int main(int argc, char** argv) { // The above code adds 4 entries to args tops // which means the array should be big enough + delete pZNC; execvp(args[0], args); CUtils::PrintError("Unable to restart znc [" + CString(strerror(errno)) + "]"); } /* Fall through */