Patch from Matt Kopec:
authorGreg Clayton <gclayton@apple.com>
Tue, 16 Oct 2012 20:20:18 +0000 (20:20 +0000)
committerGreg Clayton <gclayton@apple.com>
Tue, 16 Oct 2012 20:20:18 +0000 (20:20 +0000)
commit743ecf43930d62ba55f58bd30f82ba7de502c0c3
tree449caa51eeeaf405620b2411661debfff8e6b3ac
parente4ad2a0b96f0d836bf8e4e65b9b786dc2105d966
Patch from Matt Kopec:

This patch fixes an issue where if lldb fails to attach to a process (ie. invalid pid) on Linux, the process monitor thread gets stuck waiting for a signal from the attach thread, which never comes due to not being signaled. It also implements StopOpThread which is used for both attach/launch cases as I'm not aware of any special handling needed for the attach case. Also, propagate 'Error' from the Detach function instead of using a bool.

llvm-svn: 166055
lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp
lldb/source/Plugins/Process/Linux/ProcessMonitor.h