[pypy-svn] r20966 - pypy/dist/pypy/translator/c/src

ale at codespeak.net ale at codespeak.net
Fri Dec 9 19:36:36 CET 2005


Author: ale
Date: Fri Dec  9 19:36:35 2005
New Revision: 20966

Modified:
   pypy/dist/pypy/translator/c/src/ll__socket.h
Log:
(nik, ale)

Oups, shear luck made the test pass - this should be more robust



Modified: pypy/dist/pypy/translator/c/src/ll__socket.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/ll__socket.h	(original)
+++ pypy/dist/pypy/translator/c/src/ll__socket.h	Fri Dec  9 19:36:35 2005
@@ -97,7 +97,9 @@
         // XXX For some reason the errno attribute of the OSError is not set
         // at interpreter level. Investigate ...
         RPYTHON_RAISE_OSERROR(errno);
+        return -1;
     }
+    return fd;
 }
 
 void LL__socket_connect(int fd, RPyString *host, int port)



More information about the Pypy-commit mailing list