Check for port deletion.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -336,6 +336,10 @@ DebuggerInterface::GetNextDebugEvent(DebugEvent*& _event)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (infos[0].events & B_EVENT_INVALID
|
||||||
|
|| infos[1].events & B_EVENT_INVALID)
|
||||||
|
return B_BAD_PORT_ID;
|
||||||
|
|
||||||
if (infos[0].events & B_EVENT_READ)
|
if (infos[0].events & B_EVENT_READ)
|
||||||
return _GetNextDebuggerEvent(_event);
|
return _GetNextDebuggerEvent(_event);
|
||||||
else if (infos[1].events & B_EVENT_READ)
|
else if (infos[1].events & B_EVENT_READ)
|
||||||
|
|||||||
Reference in New Issue
Block a user