forked from OSchip/llvm-project
Patch from Viktor Kutuzov: fixes a segmentation fault crash in lldb in the ProcessPOSIX class when the object gets destroyed. I can reproduce this problem on the FreeBSD platform and it should be reproducable for the other platforms also.
llvm-svn: 153769
This commit is contained in:
parent
8453795255
commit
ab950c34d0
|
@ -292,7 +292,7 @@ ProcessPOSIX::DoDestroy()
|
||||||
// limbo).
|
// limbo).
|
||||||
m_exit_now = true;
|
m_exit_now = true;
|
||||||
|
|
||||||
if (kill(m_monitor->GetPID(), SIGKILL) && error.Success())
|
if ((m_monitor == NULL || kill(m_monitor->GetPID(), SIGKILL)) && error.Success())
|
||||||
{
|
{
|
||||||
error.SetErrorToErrno();
|
error.SetErrorToErrno();
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue