From 730070df4420f551995bf27d2c913b2fc3097512 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 23 Jan 2014 14:37:18 +0000 Subject: [PATCH] Bugfix in SOCKET_block git-svn-id: svn://kolibrios.org@4520 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/socket.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/network/socket.inc b/kernel/trunk/network/socket.inc index d508d3f336..0f99f6ef49 100644 --- a/kernel/trunk/network/socket.inc +++ b/kernel/trunk/network/socket.inc @@ -1707,8 +1707,9 @@ SOCKET_block: DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: %x\n", eax - pushf push eax + + pushf cli ; Set the 'socket is blocked' flag @@ -1724,12 +1725,12 @@ SOCKET_block: DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: suspending thread: %u\n", edx mov [eax + SOCKET.TID], edx pop edx + popf call change_task pop eax - popf - DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: continueing\n" + DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: continuing\n" ret