[Lldb-commits] [PATCH] Fix for lldb hang on Linux when attaching to a process fails

Greg Clayton gclayton at apple.com
Tue Oct 16 13:22:34 PDT 2012

% svn commit
Sending        source/Plugins/Process/Linux/ProcessMonitor.cpp
Sending        source/Plugins/Process/Linux/ProcessMonitor.h
Transmitting file data ..
Committed revision 166055.

Looks good.

On Oct 16, 2012, at 1:19 PM, "Kopec, Matt" <matt.kopec at intel.com> wrote:

> 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.

More information about the lldb-commits mailing list