From 4fd934aa83045e3e5be03600a8d2236d1c362968 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 23 Oct 2006 20:37:11 +0000 Subject: [PATCH] - subprocess still hangs :'( git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@432 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- server/action.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/action.py b/server/action.py index 9135f371..39939954 100644 --- a/server/action.py +++ b/server/action.py @@ -25,7 +25,7 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" import logging, os -from subprocess import call +#from subprocess import call # Gets the instance of the logger. logSys = logging.getLogger("fail2ban.actions.action") @@ -214,8 +214,8 @@ class Action: logSys.debug(realCmd) try: # The following line gives deadlock with multiple jails - retcode = call(realCmd, shell=True) - #retcode = os.system(realCmd) + #retcode = call(realCmd, shell=True) + retcode = os.system(realCmd) if retcode == 0: logSys.debug("%s returned successfully" % realCmd) return True