From 48847a2aabef8754b8c583d414b2b2c9e460e670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 12 Mar 2004 21:36:02 +0000 Subject: [PATCH] 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 --- src/kernel/core/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/port.c b/src/kernel/core/port.c index 51d5a78fc1..13b3ae1283 100644 --- a/src/kernel/core/port.c +++ b/src/kernel/core/port.c @@ -510,12 +510,12 @@ delete_port(port_id id) } /* mark port as invalid */ - sPorts[slot].id = -1; + 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);