From dbd00f461ddc05d41a72b4cff6b8e67342d3c428 Mon Sep 17 00:00:00 2001 From: Timur Torubarov Date: Fri, 3 Feb 2017 13:30:43 +0500 Subject: [PATCH 1/2] nonexistent signal appropriate treatment --- yandextank/plugins/Telegraf/agent/agent.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yandextank/plugins/Telegraf/agent/agent.py b/yandextank/plugins/Telegraf/agent/agent.py index 4af23c2..5241ef3 100755 --- a/yandextank/plugins/Telegraf/agent/agent.py +++ b/yandextank/plugins/Telegraf/agent/agent.py @@ -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) From f8d6e11611276467ff4f678929de53f1464ca8d4 Mon Sep 17 00:00:00 2001 From: Alexey Lavrenuke Date: Fri, 3 Feb 2017 12:30:05 +0300 Subject: [PATCH 2/2] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fc5b5fd..c49406f 100644 --- a/setup.py +++ b/setup.py @@ -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.