mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 08:06:49 +03:00
Unblock a blocked socket before closing it.
git-svn-id: svn://kolibrios.org@3267 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ddfbaa9696
commit
7eb55c9625
@ -721,6 +721,13 @@ SOCKET_close:
|
||||
mov dword [esp+32], 0 ; The socket exists, so we will succeed in closing it.
|
||||
|
||||
.socket:
|
||||
or [eax + SOCKET.options], SO_NONBLOCK ; Mark the socket as non blocking, we dont want it to block any longer!
|
||||
|
||||
test [eax + SOCKET.state], SS_BLOCKED ; Is the socket still in blocked state?
|
||||
jz @f
|
||||
call SOCKET_notify.unblock ; Unblock it.
|
||||
@@:
|
||||
|
||||
cmp [eax + SOCKET.Domain], AF_INET4
|
||||
jne .free
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user