fail2ban/server
Yaroslav Halchenko e19f9e1697 BF(?): stop/join notifier only if defined
Somehow on that elderly squeeze Debian sparc box, I got error that self.__notifier
was not defined.  So first I did define it now in the constructor, but mystery remains
how come it was not defined -- wasn"t run() then run (where it is defined)?

Anyways -- conditioning on it being defined might be safer may be?
Not sure (need to go to sleep) if with this change but on this box I also run from time
to time either into stalling of fail2ban-testcases and refusing to exit normally or

======================================================================
ERROR: test_move_into_file_after_removed (testcases.filtertestcase.MonitorFailures<FilterPyinotify>(/tmp/monitorfailures_FilterPyinotifypcHmMJfail2ban))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/fail2ban/testcases/filtertestcase.py", line 473, in tearDown
    self.filter.stop()
  File "/home/yoh/deb/gits/fail2ban/server/filterpyinotify.py", line 196, in stop
    self.__notifier.stop()
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 1315, in stop
    threading.Thread.join(self)
  File "/usr/lib/python2.6/threading.py", line 633, in join
    raise RuntimeError("cannot join thread before it is started")
RuntimeError: cannot join thread before it is started

that is with pyinotify 0.8.9-1 so could quite be "related" to its age.
2014-04-16 08:26:38 -04:00
..
__init__.py DOC: purge of svn tags 2013-05-03 16:03:38 +10:00
action.py BF: simplify 2013-09-29 15:49:45 +10:00
actions.py DOC: purge of svn tags 2013-05-03 16:03:38 +10:00
asyncserver.py BF: asyncserver now ensures all data is sent 2013-12-28 18:42:03 +00:00
banmanager.py DOC: purge of svn tags 2013-05-03 16:03:38 +10:00
datedetector.py BF(2.4): omit date patterns containing %f (.subsec) for Python before 2.5 2013-12-27 02:08:47 -05:00
datetemplate.py ENH: Add nsd filter and amend DateEpoch to match date format 2013-12-18 22:31:54 +00:00
faildata.py DOC: purge of svn tags 2013-05-03 16:03:38 +10:00
failmanager.py DOC: purge of svn tags 2013-05-03 16:03:38 +10:00
failregex.py ENH: <HOST> must end with alphanumeric \w (not a dot or a dash etc) 2013-07-16 15:03:06 -04:00
filter.py BF(PY2.4,2.5): provide bin() function (introduced in 2.6) 2014-03-16 11:15:00 -04:00
filtergamin.py DOC: minor wording fix 2014-04-16 08:26:38 -04:00
filterpoll.py ENH: Remove unused any longer _ctime helper 2013-07-03 00:09:39 -04:00
filterpyinotify.py BF(?): stop/join notifier only if defined 2014-04-16 08:26:38 -04:00
iso8601.py ENH: basic testing for iso8601 code which had no explicit tests + spit out ValueError for incorrect type of input and ParseError otherwise 2013-09-12 23:12:18 -04:00
jail.py DOC: document rational behind 20 character jail name limit 2013-11-28 23:18:34 +11:00
jails.py RF: move exceptions used by both client and server into common/exceptions.py 2013-01-28 09:46:50 -05:00
jailthread.py BF: setSleepTime -- would barf since value is not str (wasn't used/tested) 2013-07-02 17:11:24 -04:00
mytime.py ENH: "is None" instead of "== None" + tune ups in headers 2013-05-02 23:25:43 -04:00
server.py New ignorecommand that is added to the ignoreip list from output of an external program 2013-12-24 23:55:35 +03:00
ticket.py ENH+TST: Ticket -- drop unused/bogus get|setFile + enh __str__ + basic testing 2013-07-22 12:09:33 -04:00
transmitter.py New ignorecommand that is added to the ignoreip list from output of an external program 2013-12-24 23:55:35 +03:00