[Lldb-commits] [lldb] r144846 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Wed Nov 16 14:41:54 PST 2011


Author: johnny
Date: Wed Nov 16 16:41:53 2011
New Revision: 144846

URL: http://llvm.org/viewvc/llvm-project?rev=144846&view=rev
Log:
Also dump the pid of the process launching through the lldbtest.system(*popenargs, **kwargs) API.
This helps track down possible zombie processes.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=144846&r1=144845&r2=144846&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Nov 16 16:41:53 2011
@@ -296,6 +296,7 @@
     if 'stdout' in kwargs:
         raise ValueError('stdout argument not allowed, it will be overridden.')
     process = Popen(stdout=PIPE, stderr=PIPE, *popenargs, **kwargs)
+    pid = process.pid
     output, error = process.communicate()
     retcode = process.poll()
 
@@ -306,6 +307,7 @@
             args = list(popenargs)
         print >> sbuf
         print >> sbuf, "os command:", args
+        print >> sbuf, "with pid:", pid
         print >> sbuf, "stdout:", output
         print >> sbuf, "stderr:", error
         print >> sbuf, "retcode:", retcode





More information about the lldb-commits mailing list