Remove sigterm handler 47/104347/1 upstream/0.3.4
authorDonghoon Shin <dhs.shin@samsung.com>
Tue, 13 Dec 2016 06:46:15 +0000 (15:46 +0900)
committerDonghoon Shin <dhs.shin@samsung.com>
Tue, 13 Dec 2016 06:46:15 +0000 (15:46 +0900)
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

tools/litmus

index ef8483b888096f149f2685239262fafe1db515c4..87b223817e46e18b3205f09dcdb8cf02c222253a 100644 (file)
@@ -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')