remove parent's signal handler

This commit is contained in:
Alexey Lavrenuke (load testing) 2013-09-12 20:03:55 +04:00
parent 42d41034ae
commit 817a71e714

View File

@ -3,8 +3,12 @@ import time
from Tank.stepper import StpdReader
import multiprocessing as mp
import threading as th
import signal
from Queue import Empty, Full
def signal_handler(signum, frame):
pass
class BFG(object):
def __init__(
@ -46,6 +50,10 @@ class BFG(object):
'''
Worker that runs as a separate process
'''
# disable signal handler from parent:
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
self.start_time = time.time()
shooter = BFGShooter(
self.gun,