LLGS leaks pipes (when launched by lldb), sockets (when launched by platform),
and/or log file to the inferior. This should prevent all possible leaks.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
My main concern is that we allow the ProcessLaunchInfo to specify rules for things other than file STDIN, STDOUT and STDERR. This fix would close anything but STDIN/OUT/ERR. Maybe this functionality just wasn't implemented on Linux in which case this won't hurt anything, but we should look into that. I am not sure how ProcessLaunchInfo makes its way down into the NativeProcessLinux::Launch() function, but you should check it out.
source/Plugins/Process/Linux/NativeProcessLinux.cpp | ||
---|---|---|
1799–1801 ↗ | (On Diff #24263) | Don't we allow file rules for other files that should be opened/duped/closed/etc via the posix_spawn style file rules? If so, this would close all of those... Not sure if this just isn't implemented for linux? |