(implSelect): A timeout of 0 means an infinite
timeout.
From-SVN: r74259
+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
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;
}