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:
Rene Gollent 2010-12-16 04:58:35 +00:00
parent 892f944251
commit e37327bd6b

View File

@ -336,6 +336,10 @@ DebuggerInterface::GetNextDebugEvent(DebugEvent*& _event)
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)
return _GetNextDebuggerEvent(_event);
else if (infos[1].events & B_EVENT_READ)