mirror of
https://github.com/znc/znc.git
synced 2026-07-02 16:02:02 +02:00
gave access to killing the process
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@676 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <vector>
|
||||
@@ -366,6 +367,11 @@ public:
|
||||
ConnectFD(iReadFD, iWriteFD, "0.0.0.0:0");
|
||||
return( m_iPid );
|
||||
}
|
||||
void Kill( int iSignal )
|
||||
{
|
||||
kill( m_iPid, iSignal );
|
||||
Close();
|
||||
}
|
||||
virtual ~CExecSock() {
|
||||
close2(m_iPid, GetRSock(), GetWSock());
|
||||
SetRSock( -1 );
|
||||
|
||||
Reference in New Issue
Block a user