diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-11-16 22:41:53 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-11-16 22:41:53 +0000 |
commit | 0bd8c311cbea56646103b82f81553653b8f14837 (patch) | |
tree | 2ce23ebbd4908d4b4f9622dde331869fbf9eeb2e | |
parent | 35923d7864823fe100a6a106ef8a6e704252bb39 (diff) | |
download | bcm5719-llvm-0bd8c311cbea56646103b82f81553653b8f14837.tar.gz bcm5719-llvm-0bd8c311cbea56646103b82f81553653b8f14837.zip |
Also dump the pid of the process launching through the lldbtest.system(*popenargs, **kwargs) API.
This helps track down possible zombie processes.
llvm-svn: 144846
-rw-r--r-- | lldb/test/lldbtest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index bdbc10b7077..5cd8a6b4f44 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -296,6 +296,7 @@ def system(*popenargs, **kwargs): 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 @@ def system(*popenargs, **kwargs): 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 |