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

Kopec, Matt matt.kopec at intel.com
Tue Oct 16 13:19:15 PDT 2012

Hi all,

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20121016/99dcbec7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attachfailfix3.patch
Type: application/octet-stream
Size: 3867 bytes
Desc: attachfailfix3.patch
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20121016/99dcbec7/attachment.obj>

More information about the lldb-commits mailing list