From 910527aadc293141416c8b05fab0743172dc2828 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Wed, 12 Jun 2013 10:53:22 +0000 Subject: [PATCH] Fix for previous revision git-svn-id: svn://kolibrios.org@3648 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/socket.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/kernel/trunk/network/socket.inc b/kernel/trunk/network/socket.inc index 2a62d72f31..d212fe163e 100644 --- a/kernel/trunk/network/socket.inc +++ b/kernel/trunk/network/socket.inc @@ -2195,6 +2195,9 @@ SOCKET_check_owner: align 4 SOCKET_process_end: + pushf + cli ; FIXME + DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_process_end: %x\n", edx pusha @@ -2219,9 +2222,21 @@ SOCKET_process_end: mov [ebx + SOCKET.PID], 0 mov eax, ebx mov ebx, [ebx + SOCKET.NextPtr] + + pusha + mov ecx, socket_mutex + call mutex_unlock + popa + pusha call SOCKET_close.socket popa + + pusha + mov ecx, socket_mutex + call mutex_lock + popa + jmp .next_socket_test .done: @@ -2232,6 +2247,8 @@ SOCKET_process_end: call mutex_unlock popa + popf + ret