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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri May 2 06:48:40 PDT 2025


DavidSpickett wrote:

> We had code which was waiting for an pipe EOF, but it never got that due to the FD ending up in an unsuspecting (and unrelated) process. Although that's possible to solve in a different way, I think it's still better to declare all of the FDs passed to a process explicitly.

Skill issue on my part but I don't understand how a file descriptor "ends up" in another process. My interaction with them has been as handles, so I assumed anyone who has the handle would be able to use them.

No need to solve that education problem but that's probably why I am slow to realise the point of this change. I have not dealt with the symptoms before.

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


More information about the lldb-commits mailing list