[Lldb-commits] [PATCH] Avoid leakage of file descriptors in LLDB and LLGS

Pavel Labath labath at google.com
Tue Feb 3 08:08:52 PST 2015


Hi vharron, clayborg,

Both LLDB and LLGS are leaking file descriptors into the debugged process. This plugs the leak by
closing the unneeded descriptors. In one case I use O_CLOEXEC, which I hope is supported on
relevant platforms. I also added a regression test and plugged a fd leak in dosep.py.

http://reviews.llvm.org/D7372

Files:
  source/Plugins/Process/Linux/NativeProcessLinux.cpp
  source/Plugins/Process/Linux/ProcessMonitor.cpp
  source/Target/ProcessLaunchInfo.cpp
  test/dosep.py
  test/functionalities/avoids-fd-leak/Makefile
  test/functionalities/avoids-fd-leak/TestFdLeak.py
  test/functionalities/avoids-fd-leak/main.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7372.19226.patch
Type: text/x-patch
Size: 5414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150203/5d14b406/attachment.bin>


More information about the lldb-commits mailing list