<rdar://problem/13121056>
authorGreg Clayton <gclayton@apple.com>
Sat, 16 Feb 2013 22:53:04 +0000 (22:53 +0000)
committerGreg Clayton <gclayton@apple.com>
Sat, 16 Feb 2013 22:53:04 +0000 (22:53 +0000)
commit8df92678a1ea2be2f661daa55b8c2f0472c987d8
treebeecee55062f7a3b1f63ac5bbfec15345db811b8
parente48310dc6bcedb3803a1939d479c05236957a889
<rdar://problem/13121056>

Fixed a crasher when the ConnectionFileDescriptor was used in a process with over FD_SETSIZE (1024) files open. It would corrupt the stack and cause the stack checker to assert and kill the program.

The final fix was to "#define _DARWIN_UNLIMITED_SELECT" at the top of the one and only file that uses select () in the LLDB codebase and then make an array of "fd_set" objects so they can handle more than 1024 file descriptors. The new code can handle as many file descriptors as a process can create.

llvm-svn: 175378
lldb/source/Core/ConnectionFileDescriptor.cpp