mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-08 03:08:56 +00:00
remove parent's signal handler
This commit is contained in:
parent
42d41034ae
commit
817a71e714
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user