[LNT] r298972 - We are having a problem with zombie LNT processes on Linux

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 19:43:16 PDT 2017


Author: cmatthews
Date: Tue Mar 28 21:43:15 2017
New Revision: 298972

URL: http://llvm.org/viewvc/llvm-project?rev=298972&view=rev
Log:
We are having a problem with zombie LNT processes on Linux

It seems as though the LNT workers do not die when the parents do.
Multiprocessing docs imply this will fix.

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=298972&r1=298971&r2=298972&view=diff
==============================================================================
--- lnt/trunk/lnt/util/async_ops.py (original)
+++ lnt/trunk/lnt/util/async_ops.py Tue Mar 28 21:43:15 2017
@@ -100,6 +100,9 @@ def async_run_job(job, db_name, ts, func
     job = Process(target=async_wrapper,
                   args=[job, args, func_args])
 
+    # Set this to make sure when parent dies, children are killed.
+    job.daemon = True
+
     job.start()
     JOBS.append(job)
 




More information about the llvm-commits mailing list