Author: mturk
Date: Sat Nov 21 15:15:41 2009
New Revision: 882924
URL: http://svn.apache.org/viewvc?rev=882924&view=rev
Log:
Fix some copy/paste typos
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java?rev=882924&r1=882923&r2=882924&view=diff
==============================================================================
---
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
(original)
+++
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
Sat Nov 21 15:15:41 2009
@@ -69,7 +69,7 @@
{
if (!valid())
throw new ClosedDescriptorException();
- if (isBlocking()) {
+ if (!isBlocking()) {
if (mode == PipeIoMode.FULL_NONBLOCK)
mode = PipeIoMode.FULL_BLOCK;
}
@@ -198,12 +198,12 @@
private static native int tmget0(int fd)
throws IOException;
/**
- * Returns file timeout.
+ * Returns pipe timeout.
*/
public int getTimeout()
throws IOException
{
- if (!fd.valid())
+ if (!valid())
throw new ClosedDescriptorException();
return tmget0(fd.fd());
}
@@ -211,12 +211,12 @@
private static native int tmset0(int fd, int timeout)
throws IOException;
/**
- * Returns file timeout.
+ * Set pipe timeout.
*/
public boolean setTimeout(int timeout)
throws IOException
{
- if (!fd.valid())
+ if (!valid())
throw new ClosedDescriptorException();
int rc = tmset0(fd.fd(), timeout);
return rc == 0 ? true : false;