harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r725677 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
Date Thu, 11 Dec 2008 13:12:47 GMT
Author: hindessm
Date: Thu Dec 11 05:12:46 2008
New Revision: 725677

URL: http://svn.apache.org/viewvc?rev=725677&view=rev
Log:
Fixed selectRead on unix to return portlib error codes rather than
system ones so that it is consistent with the windows selectRead
implementation.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c?rev=725677&r1=725676&r2=725677&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
Thu Dec 11 05:12:46 2008
@@ -71,6 +71,12 @@
   my_pollfd.revents = 0;
   result = poll (&my_pollfd, 1, timeout);
   
+  if (result == 0)
+    return HYPORT_ERROR_SOCKET_TIMEOUT;
+
+  if (result == -1)
+    return HYPORT_ERROR_SOCKET_OPFAILED;
+
   return result;
 }
 



Mime
View raw message