mirror of https://github.com/fail2ban/fail2ban
Merge pull request #1770 from tjikkun/double_lock
resolves deadlock (dual lock) by SYSLOG logging typepull/1778/head
commit
c43a3ac1cd
|
@ -638,9 +638,9 @@ class Server:
|
|||
if self.__syslogSocket == syslogsocket:
|
||||
return True
|
||||
self.__syslogSocket = syslogsocket
|
||||
# Conditionally reload, logtarget depends on socket path when SYSLOG
|
||||
return self.__logTarget != "SYSLOG"\
|
||||
or self.setLogTarget(self.__logTarget)
|
||||
# Conditionally reload, logtarget depends on socket path when SYSLOG
|
||||
return self.__logTarget != "SYSLOG"\
|
||||
or self.setLogTarget(self.__logTarget)
|
||||
|
||||
def getLogTarget(self):
|
||||
with self.__loggingLock:
|
||||
|
|
Loading…
Reference in New Issue