mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 17:59:38 +03:00
Allow SO_NONBLOCK to be set in socket type on socket open (similar to linux)
git-svn-id: svn://kolibrios.org@3705 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
97c13d77de
commit
41339ef767
@ -300,11 +300,11 @@ SOCKET_open:
|
|||||||
mov [esp+32], edi ; return socketnumber
|
mov [esp+32], edi ; return socketnumber
|
||||||
DEBUGF DEBUG_NETWORK_VERBOSE, "socknum=%u\n", edi
|
DEBUGF DEBUG_NETWORK_VERBOSE, "socknum=%u\n", edi
|
||||||
|
|
||||||
; push edx
|
test edx, SO_NONBLOCK
|
||||||
; and edx, SO_NONBLOCK
|
jz @f
|
||||||
; or [eax + SOCKET.options], SO_NONBLOCK ;edx ; HACK: make all sockets non-blocking untill API and applications are fixed
|
or [eax + SOCKET.options], SO_NONBLOCK
|
||||||
; pop edx
|
and edx, not SO_NONBLOCK
|
||||||
; and edx, not SO_NONBLOCK
|
@@:
|
||||||
|
|
||||||
mov [eax + SOCKET.Domain], ecx
|
mov [eax + SOCKET.Domain], ecx
|
||||||
mov [eax + SOCKET.Type], edx
|
mov [eax + SOCKET.Type], edx
|
||||||
|
Loading…
Reference in New Issue
Block a user