Merge pull request #324 from yandex/master

Master
This commit is contained in:
Alexey Lavrenuke 2017-02-03 11:30:42 +02:00 committed by GitHub
commit 8c3ae26e17
2 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='yandextank',
version='1.8.32',
version='1.8.33',
description='a performance measurement tool',
longer_description='''
Yandex.Tank is a performance measurement and load testing automatization tool.

View File

@ -32,8 +32,11 @@ def set_sig_handler():
ignore = ['SIGCHLD', 'SIGCLD']
all_sig = [s for s in dir(signal) if s.startswith("SIG")]
for sig_name in ignore:
sig_num = getattr(signal, sig_name)
signal.signal(sig_num, ignore_handler)
try:
sig_num = getattr(signal, sig_name)
signal.signal(sig_num, ignore_handler)
except Exception:
pass
for sig_name in [s for s in all_sig if s not in (uncatchable + ignore)]:
try:
sig_num = getattr(signal, sig_name)