When quitting the debug nub thread very early (i.e. right after its

creation), we didn't release the team debug info spinlock and reenabled
interrupts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-09-17 22:38:17 +00:00
parent 7b40eb4206
commit 4eba6974b5

View File

@ -1513,8 +1513,11 @@ debug_nub_thread(void *)
GRAB_TEAM_DEBUG_INFO_LOCK(nubThread->team->debug_info);
if (nubThread->team->debug_info.nub_thread != nubThread->id)
if (nubThread->team->debug_info.nub_thread != nubThread->id) {
RELEASE_TEAM_DEBUG_INFO_LOCK(nubThread->team->debug_info);
restore_interrupts(state);
return 0;
}
port_id port = nubThread->team->debug_info.nub_port;
sem_id writeLock = nubThread->team->debug_info.debugger_write_lock;