You must not copy a list in that way; it's now using the new list_move_to_list()

call.
"testapp" now works fine with the new port code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-03-12 21:36:02 +00:00
parent ed3f63ae37
commit 48847a2aab

View File

@ -512,10 +512,10 @@ delete_port(port_id id)
/* mark port as invalid */
sPorts[slot].id = -1;
name = sPorts[slot].name;
list = sPorts[slot].msg_queue;
readSem = sPorts[slot].read_sem;
writeSem = sPorts[slot].write_sem;
sPorts[slot].name = NULL;
list_move_to_list(&sPorts[slot].msg_queue, &list);
RELEASE_PORT_LOCK(sPorts[slot]);
restore_interrupts(state);