[LNT] r299136 - Run cleanup on signals
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 16:53:36 PDT 2017
Author: cmatthews
Date: Thu Mar 30 18:53:36 2017
New Revision: 299136
URL: http://llvm.org/viewvc/llvm-project?rev=299136&view=rev
Log:
Run cleanup on signals
We have an issue with backgroud processes sticking around. Make sure
the cleanup is run when singals are sent.
Modified:
lnt/trunk/lnt/util/async_ops.py
Modified: lnt/trunk/lnt/util/async_ops.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/async_ops.py?rev=299136&r1=299135&r2=299136&view=diff
==============================================================================
--- lnt/trunk/lnt/util/async_ops.py (original)
+++ lnt/trunk/lnt/util/async_ops.py Thu Mar 30 18:53:36 2017
@@ -46,7 +46,8 @@ def launch_workers():
pass
-def sigHandler(signo, frame):
+def sig_handler(signo, frame):
+ cleanup()
sys.exit(0)
@@ -59,7 +60,7 @@ def cleanup():
atexit.register(cleanup)
-signal.signal(signal.SIGTERM, sigHandler)
+signal.signal(signal.SIGTERM, sig_handler)
def async_fieldchange_calc(db_name, ts, run):
More information about the llvm-commits
mailing list