llvm-project/lldb/source/Plugins
Pavel Labath 3a2da9eb0d Fix TestProcesslaunch regression caused by D7372
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
2015-02-06 11:32:52 +00:00
..
ABI Implement initial Altivec support 2015-02-05 07:12:01 +00:00
Disassembler Abstract the details from regex.h a bit more by not allowing people to specify compile and execute flags for regular expressions. Also enable better regular expressions if they are available by check if the REG_ENHANCED is available and using it if it is. 2015-01-21 21:51:02 +00:00
DynamicLoader Don't wait for the dynamic loader to set a module as a dynamic link editor, figure it out through the ObjectFile. 2015-02-05 02:01:34 +00:00
Instruction Add #if 0 around unreachable block of code to suppress warnings. 2014-10-17 01:56:57 +00:00
InstrumentationRuntime Change AddressSanitzierRuntime to print its info message via 2014-12-09 20:52:26 +00:00
JITLoader Fix JITLoaderGDB for 64-bit host and 32-bit target 2014-09-15 19:55:27 +00:00
LanguageRuntime Add additional DWARF 5 language constants. 2015-02-06 06:46:52 +00:00
MemoryHistory Add ASan history threads into process_sp->GetExtendedThreadList, so they don't get freed too early 2014-09-23 18:20:24 +00:00
ObjectContainer LLGS Android target support - for Andy Chien : http://reviews.llvm.org/D6166 2014-11-08 01:41:49 +00:00
ObjectFile Don't wait for the dynamic loader to set a module as a dynamic link editor, figure it out through the ObjectFile. 2015-02-05 02:01:34 +00:00
OperatingSystem Fixed deadlocks that could occur when using python for breakpoints, operating system plugins, and other async python usage. 2014-02-13 23:34:38 +00:00
Platform Extend SBPlatform with capability to launch/terminate a process remotely. Integrate this change into test framework in order to spawn processes on a remote target. 2015-02-04 23:19:15 +00:00
Process Fix TestProcesslaunch regression caused by D7372 2015-02-06 11:32:52 +00:00
SymbolFile Keep the user data for compile units up to date since we often create lldb_private::CompileUnit objects without creating the DWARFCompileUnit objects when we do DWARF in .o files. 2015-02-05 02:10:29 +00:00
SymbolVendor Remove commented includes 2014-02-02 14:06:07 +00:00
SystemRuntime Change SystemRuntimeMacOSX::ReadLibdispatchTSDIndexes to use the 2014-09-12 00:09:04 +00:00
UnwindAssembly Get rid of Debugger::FormatPrompt() and replace it with the new FormatEntity class. 2015-02-04 22:00:53 +00:00
CMakeLists.txt Fix cmake build for PluginInstrumentationRuntimeAddressSanitizer. 2014-10-11 20:11:18 +00:00
Makefile Fix the Makefile build by actually building ABI/SysV-ppc 2014-11-02 22:03:15 +00:00