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:
hidnplayr 2013-06-25 20:11:09 +00:00
parent 97c13d77de
commit 41339ef767

View File

@ -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