[Lldb-commits] [lldb] [lldb/Host] Enable inheriting "non-inheritable" FDs (PR #126935)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 03:30:45 PDT 2025


https://github.com/DavidSpickett commented:

> Currently we're creating inheritable (~FD_CLOEXEC) file descriptors in the (few) cases where we need to pass an FD to a subprocess. The problem with these is that, in a multithreaded application such as lldb, there's essentially no way to prevent them from being leaked into processes other than the intended one.

The consequences of this are what exactly?

That the debugee may see differently numbered descriptors when run via lldb vs. normally?

https://github.com/llvm/llvm-project/pull/126935


More information about the lldb-commits mailing list