File: //lib/python2.7/site-packages/fail2ban/server/jailthread.pyo
�
��_c @ s� d Z d Z d Z d d l Z d d l m Z d d l m Z d d l m Z d d
l
m Z m Z d e f d � � YZ
e j d k r� e
j e
_ n e e
d � s� e
j e
_ n d S( s
Cyril Jaquiers Copyright (c) 2004 Cyril Jaquiert GPLi����N( t Thread( t abstractmethodi ( t Utilsi ( t
excepthookt prctl_set_th_namet
JailThreadc B sz e Z d Z d d � Z e j d k r3 d � Z n d � Z e d d � � Z
d � Z d � Z e d � � Z
d
� Z RS(
s 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.
c se t t | � j d | � t | _ d | _ t | _ t j
| _ | j � � f d � } | | _ d S( Nt namec sO y � | | � Wn7 t k
rJ } t d k rB t t j � � qK | GHn Xd S( N( t Exceptiont syst NoneR t exc_info( t argst kwargst e( t run( s>