Rework fix in r201744. You really DO need to waitpid twice to get the
authorJim Ingham <jingham@apple.com>
Tue, 24 Jun 2014 21:51:42 +0000 (21:51 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 24 Jun 2014 21:51:42 +0000 (21:51 +0000)
commit6008924508d0c8fdb82ff338a13d073a0650a51c
treea4220c1f7ce93d34107ed7af837a70caaf100146
parent5d1b9c73860c2c008772de1ded6d86792c4258fa
Rework fix in r201744.  You really DO need to waitpid twice to get the
process fully reaped.  The race & bad behavior was because we were letting
the reaping thread in LLDB to also set the Process exit status, so debugserver
would sometimes be shut down before it got a chance to report the exit status,
and then we got confused.

<rdar://problem/16555850>

llvm-svn: 211636
lldb/include/lldb/Target/Process.h
lldb/include/lldb/lldb-enumerations.h
lldb/source/Host/macosx/Host.mm
lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
lldb/tools/debugserver/source/DNB.cpp