[MLton-commit] r7210
    Wesley Terpstra 
    wesley at mlton.org
       
    Tue Jul  7 08:18:13 PDT 2009
    
    
  
Winsock must be initialized before use of select!
----------------------------------------------------------------------
U   mlton/trunk/runtime/basis/Net/Socket/select.c
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/basis/Net/Socket/select.c
===================================================================
--- mlton/trunk/runtime/basis/Net/Socket/select.c	2009-07-07 01:13:14 UTC (rev 7209)
+++ mlton/trunk/runtime/basis/Net/Socket/select.c	2009-07-07 15:18:12 UTC (rev 7210)
@@ -62,6 +62,7 @@
   } else {
     except_fds = NULL;
   }
+  MLton_initSockets ();
   res = select(FD_SETSIZE, read_fds, write_fds, except_fds, Socket_timeoutPtr);
   if (res == -1) {
     MLton_fixSocketErrno();
    
    
More information about the MLton-commit
mailing list