mirror of https://github.com/fail2ban/fail2ban
Merge branch '0.10' into 0.11
commit
c15c300d2a
|
@ -38,6 +38,7 @@ ver. 0.11.2-dev (20??/??/??) - development edition
|
||||||
IPv6-capable now.
|
IPv6-capable now.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
* restoring a large number (500+ depending on files ulimit) of current bans when using PyPy fixed
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,6 @@ class Utils():
|
||||||
if stdout is not None and stdout != '' and std_level >= logSys.getEffectiveLevel():
|
if stdout is not None and stdout != '' and std_level >= logSys.getEffectiveLevel():
|
||||||
for l in stdout.splitlines():
|
for l in stdout.splitlines():
|
||||||
logSys.log(std_level, "%x -- stdout: %r", realCmdId, uni_decode(l))
|
logSys.log(std_level, "%x -- stdout: %r", realCmdId, uni_decode(l))
|
||||||
popen.stdout.close()
|
|
||||||
if popen.stderr:
|
if popen.stderr:
|
||||||
try:
|
try:
|
||||||
if retcode is None or retcode < 0:
|
if retcode is None or retcode < 0:
|
||||||
|
@ -271,7 +270,9 @@ class Utils():
|
||||||
if stderr is not None and stderr != '' and std_level >= logSys.getEffectiveLevel():
|
if stderr is not None and stderr != '' and std_level >= logSys.getEffectiveLevel():
|
||||||
for l in stderr.splitlines():
|
for l in stderr.splitlines():
|
||||||
logSys.log(std_level, "%x -- stderr: %r", realCmdId, uni_decode(l))
|
logSys.log(std_level, "%x -- stderr: %r", realCmdId, uni_decode(l))
|
||||||
popen.stderr.close()
|
|
||||||
|
if popen.stdout: popen.stdout.close()
|
||||||
|
if popen.stderr: popen.stderr.close()
|
||||||
|
|
||||||
success = False
|
success = False
|
||||||
if retcode in success_codes:
|
if retcode in success_codes:
|
||||||
|
|
Loading…
Reference in New Issue