(self, error_queue)
init error handler
init error handler
init error handler
def __init__(self, error_queue):
        """ init error handler """
        import signal
        import threading
        self.error_queue = error_queue
        self.children_pids = []
        self.error_thread = threading.Thread(
            target=self.error_listener, daemon=True)
        self.error_thread.start()
        signal.signal(signal.SIGUSR1, self.signal_handler)
def __init__ ( self , error_queue ) : import signal import threading self . error_queue = error_queue self . children_pids = [ ] self . error_thread = threading . Thread ( target = self . error_listener , daemon = True ) self . error_thread . start ( ) signal . signal ( signal . SIGUSR1 , self . signal_handler )