From: Donghoon Shin Date: Tue, 13 Dec 2016 06:46:15 +0000 (+0900) Subject: Remove sigterm handler X-Git-Tag: upstream/0.3.4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=275092c7e574e5edc5e874d8e86718d104c8567b;p=tools%2Flitmus.git Remove sigterm handler sigterm handler sometimes raise an issue in multi-thread testing environment. litmus process receive SIGTERM from CI tool but it can not destroy itself. Change-Id: I2c40eea03681e17aba9ec3fed82cd870859f9c2c --- diff --git a/tools/litmus b/tools/litmus index ef8483b..87b2238 100644 --- a/tools/litmus +++ b/tools/litmus @@ -24,10 +24,10 @@ from litmus import __version__, _path_for_locks_, _duts_, _projects_, _confdir_ from litmus.core.util import init_logger -def sigterm_handler(signal, frame): - """docstring for sigterm_handler""" - raise Exception('SIGTERM') - sys.exit(1) +#def sigterm_handler(signal, frame): +# """docstring for sigterm_handler""" +# raise Exception('SIGTERM') +# sys.exit(1) def subparser(func): @@ -224,7 +224,7 @@ if __name__ == '__main__': init_logger() init_lockdir() init_confdir() - signal.signal(signal.SIGTERM, sigterm_handler) + #signal.signal(signal.SIGTERM, sigterm_handler) sys.exit(main(sys.argv)) except KeyboardInterrupt: raise Exception('KeyboardInterrupt')