a
=*fN @ sn d Z dZdZddlZddlmZ ddlmZ ddlm Z d d
l
mZmZ G dd deZ
ee
d
sje
je
_dS )z
Cyril Jaquierz Copyright (c) 2004 Cyril JaquierZGPL N)Thread)abstractmethod )Utils )
excepthookprctl_set_th_namec st e Zd ZdZd fdd Z fddZeddd Z fd
dZedd
Z dd Z
edd Z fddZ Z
S )
JailThreada Abstract class for threading elements in Fail2Ban.
Attributes
----------
daemon
ident
name
status
active : bool
Control the state of the thread.
idle : bool
Control the idle state of the thread.
sleeptime : int
The time the thread sleeps for in the loop.
Nc sJ t tj|d d_d _d_tj_j fdd}|_ d S )N)nameTFc
sb z | i | W nB ty\ } z*td ur@tt nt| W Y d }~n
d }~0 0 d S N)onStop Exceptionsysr exc_infoprint)argskwargserunself >/usr/lib/python3.9/site-packages/fail2ban/server/jailthread.pyrun_with_except_hookC s z1JailThread.__init__.