From 86ea63504f3e8a74cfb1d533be9d9602d2d17e27 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 12 Jun 2010 14:34:09 +0200 Subject: Removed async from tree --- lib/git/async/__init__.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lib/git/async/__init__.py (limited to 'lib/git/async/__init__.py') diff --git a/lib/git/async/__init__.py b/lib/git/async/__init__.py deleted file mode 100644 index e212f1b2..00000000 --- a/lib/git/async/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -"""Initialize the multi-processing package""" - -#{ Initialization -def _init_atexit(): - """Setup an at-exit job to be sure our workers are shutdown correctly before - the interpreter quits""" - import atexit - import thread - atexit.register(thread.do_terminate_threads) - -def _init_signals(): - """Assure we shutdown our threads correctly when being interrupted""" - import signal - import thread - - prev_handler = signal.getsignal(signal.SIGINT) - def thread_interrupt_handler(signum, frame): - thread.do_terminate_threads() - if callable(prev_handler): - prev_handler(signum, frame) - raise KeyboardInterrupt() - # END call previous handler - # END signal handler - signal.signal(signal.SIGINT, thread_interrupt_handler) - - -#} END init - -_init_atexit() -_init_signals() -- cgit v1.2.3