diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2011-10-15 09:02:22 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2011-10-15 09:02:22 +0000 |
commit | ce4946768c5f295b8e11d6e3c420ac9d8f83f8ca (patch) | |
tree | 73ce35e88b6c07e4b5150a4990659c6b7d1099ab /otherlibs/win32unix/select.c | |
parent | fc82a408a374bdf9394c39e88e5e70b25a32ef73 (diff) |
PR#5328: Windows, Unix.select and non-blocking sockets (untested patch)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11223 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/select.c')
-rw-r--r-- | otherlibs/win32unix/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/select.c b/otherlibs/win32unix/select.c index d96c3d9d2..af9766ff8 100644 --- a/otherlibs/win32unix/select.c +++ b/otherlibs/win32unix/select.c @@ -556,7 +556,7 @@ void socket_poll (HANDLE hStop, void *_data) if (iterQuery->uFlagsFd & FLAGS_FD_IS_BLOCKING) { DEBUG_PRINT("Restore a blocking socket"); - iMode = 1; + iMode = 0; check_error(lpSelectData, WSAEventSelect((SOCKET)(iterQuery->hFileDescr), aEvents[i], 0) != 0 || ioctlsocket((SOCKET)(iterQuery->hFileDescr), FIONBIO, &iMode) != 0); |