Commit 148c8e7b by Mohan Embar Committed by Mohan Embar

* gnu/java/nio/natSelectorImplPosix.cc

	(implSelect): A timeout of 0 means an infinite
	timeout.

From-SVN: r74259
parent da63064a
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> 2003-12-02 Fernando Nasser <fnasser@redhat.com>
* gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation
......
...@@ -57,8 +57,10 @@ gnu::java::nio::SelectorImpl::implSelect (jintArray read, jintArray write, ...@@ -57,8 +57,10 @@ gnu::java::nio::SelectorImpl::implSelect (jintArray read, jintArray write,
real_time_data.tv_usec = timeout; real_time_data.tv_usec = timeout;
// If not legal timeout value is given, use NULL. // If not legal timeout value is given, use NULL.
// This means an infinite timeout. // This means an infinite timeout. The specification
if (timeout >= 0) // also says that a zero timeout should be treated
// as infinite.
if (timeout > 0)
{ {
time_data = &real_time_data; time_data = &real_time_data;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment