code: def set_signal(self):
          
  
          def signal_handle(signum, frame):
              self.error("User interrupt.kill threads.")
              sys.exit(-1)
              pass
  
          signal.signal(signal.SIGINT, signal_handle)
          pass
docs: 设置信号处理
  
          默认直接中断,考虑到一些场景用户需要等待线程结束.
          可在此自定义操作
  
          :return: