* gnu/java/nio/natSelectorImplPosix.cc
authorMohan Embar <gnustuff@thisiscool.com>
Thu, 4 Dec 2003 00:31:27 +0000 (00:31 +0000)
committerMohan Embar <membar@gcc.gnu.org>
Thu, 4 Dec 2003 00:31:27 +0000 (00:31 +0000)
(implSelect): A timeout of 0 means an infinite
timeout.

From-SVN: r74259

libjava/ChangeLog
libjava/gnu/java/nio/natSelectorImplPosix.cc

index b89faeb6b2d30e2eb28f59f68802eac7b718e90d..3153305bc1cc7fbba96abe182368e96a39af8b5b 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-03  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * gnu/java/nio/natSelectorImplPosix.cc
+       (implSelect): A timeout of 0 means an infinite
+       timeout.
+
 2003-12-02  Fernando Nasser  <fnasser@redhat.com>
  
        * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation
index 8f1bb685ebf11839ef629edefe034d2ccc3004cd..81de3ed9475d5673848fb599816e5a5b78b72e67 100644 (file)
@@ -57,8 +57,10 @@ gnu::java::nio::SelectorImpl::implSelect (jintArray read, jintArray write,
   real_time_data.tv_usec = timeout;
 
   // If not legal timeout value is given, use NULL.
-  // This means an infinite timeout.
-  if (timeout >= 0)
+  // This means an infinite timeout. The specification
+  // also says that a zero timeout should be treated
+  // as infinite.
+  if (timeout > 0)
     {
       time_data = &real_time_data;
     }