summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonghoon Shin <dhs.shin@samsung.com>2016-12-13 15:46:15 +0900
committerDonghoon Shin <dhs.shin@samsung.com>2016-12-13 15:46:15 +0900
commit275092c7e574e5edc5e874d8e86718d104c8567b (patch)
tree897d17d90e927709f30954cb0ad079c14fec249d
parent7730be8d7ea98b88c4b0cc1df951965d584ac512 (diff)
downloadlitmus-275092c7e574e5edc5e874d8e86718d104c8567b.tar.gz
litmus-275092c7e574e5edc5e874d8e86718d104c8567b.tar.bz2
litmus-275092c7e574e5edc5e874d8e86718d104c8567b.zip
Remove sigterm handlerupstream/0.3.4
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
-rw-r--r--tools/litmus10
1 files changed, 5 insertions, 5 deletions
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')