hanchenye-llvm-project/lldb/source/Host
Greg Clayton e4e45924d7 Made the darwin host layer properly reap any child processes that it spawns.
After recent changes we weren't reaping child processes resulting in many
zombie processes. 

This was fixed by adding more settings to the ProcessLaunchOptions class
that allow clients to specify a callback function and baton to be notified
when their process dies. If one is not supplied a default callback will be
used that "does the right thing". 

Cleaned up a race condition in the ProcessGDBRemote class that would attempt
to monitor when debugserver died. 

Added an extra boolean to the process monitor callbacks that indicate if a
process exited or not. If your process exited with a zero exit status and no
signal, both items could be zero.

Modified the process monitor functions to not require a callback function
in order to reap the child process.

llvm-svn: 144780
2011-11-16 05:37:56 +00:00
..
common Made the darwin host layer properly reap any child processes that it spawns. 2011-11-16 05:37:56 +00:00
freebsd Patch by David Forsythe to build lldb on FreeBSD! 2011-08-02 20:52:42 +00:00
linux API fix and missing headers. 2011-05-19 23:07:19 +00:00
macosx Made the darwin host layer properly reap any child processes that it spawns. 2011-11-16 05:37:56 +00:00
Makefile Patch by David Forsythe to build lldb on FreeBSD! 2011-08-02 20:52:42 +00:00