forked from OSchip/llvm-project
3a2da9eb0d
Summary: After closing all the leaked file descriptors to the inferior tty, the following problem occured: - when stdin, stdout and stderr are redirected, there are no slave descriptors open (which is good) - lldb has a reader thread, which attempts to read from the master end of the tty - this thread receives an EOF - in response, it closes it's master end - as this is the last open file descriptor for the master end, this deletes the tty and sends SIGHUP to the inferior (this is bad) I fix this problem by making sure the master end remains open for the duration of the inferior process by storing a copy of the file descriptor in ProcessMonitor. I create a copy to avoid ownership issues with the reading thread. Reviewers: ovyalov, emaste Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7440 llvm-svn: 228391 |
||
---|---|---|
.. | ||
ABI | ||
Disassembler | ||
DynamicLoader | ||
Instruction | ||
InstrumentationRuntime | ||
JITLoader | ||
LanguageRuntime | ||
MemoryHistory | ||
ObjectContainer | ||
ObjectFile | ||
OperatingSystem | ||
Platform | ||
Process | ||
SymbolFile | ||
SymbolVendor | ||
SystemRuntime | ||
UnwindAssembly | ||
CMakeLists.txt | ||
Makefile |