From ef0bf70ba31de45a4e7a627d0438fa94dc8f293c Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 18 Dec 2006 21:49:10 +0000 Subject: [PATCH] - Send SIGTERM instead of SIGINT when using "-k" git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_6@492 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- CHANGELOG | 6 +++++- utils/process.py | 2 +- version.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2b97798c..16b7e67a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,9 +4,13 @@ |_| \__,_|_|_/___|_.__/\__,_|_||_| ============================================================= -Fail2Ban (version 0.6.2) 2006/12/11 +Fail2Ban (version 0.6.3) 200?/??/?? ============================================================= +ver. 0.6.3 (200?/??/??) - stable +---------- +- Send SIGTERM instead of SIGINT when using "-k" + ver. 0.6.2 (2006/12/11) - stable ---------- - Fixed UTF-8 log file parsing diff --git a/utils/process.py b/utils/process.py index b310f090..3ba7799b 100644 --- a/utils/process.py +++ b/utils/process.py @@ -112,7 +112,7 @@ def killPID(pid): INT signal (same effect as +). """ try: - return os.kill(pid, 2) + return os.kill(pid, signal.SIGTERM) except OSError: logSys.error("Can not kill process " + `pid` + ". Please check that " + "Fail2Ban is not running and remove the file " + diff --git a/version.py b/version.py index 437d32ca..98c855d0 100644 --- a/version.py +++ b/version.py @@ -24,4 +24,4 @@ __date__ = "$Date$" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -version = "0.6.2" +version = "0.6.2-SVN"