ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1097584 - /ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java
Date Thu, 28 Apr 2011 19:39:53 GMT
Author: hibou
Date: Thu Apr 28 19:39:53 2011
New Revision: 1097584

URL: http://svn.apache.org/viewvc?rev=1097584&view=rev
Log:
Fix for BR #48789.
Handle an IOE with "Pipe broken" just like a one with "Write end dead". They are raised for
the same reason but not at the same time.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java?rev=1097584&r1=1097583&r2=1097584&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/LeadPipeInputStream.java Thu Apr 28
19:39:53 2011
@@ -87,7 +87,8 @@ public class LeadPipeInputStream extends
             result = super.read();
         } catch (IOException eyeOhEx) {
             String msg = eyeOhEx.getMessage();
-            if ("write end dead".equalsIgnoreCase(msg)) {
+            if ("write end dead".equalsIgnoreCase(msg)
+                    || "pipe broken".equalsIgnoreCase(msg)) {
                 if (super.in > 0 && super.out < super.buffer.length
                     && super.out > super.in) {
                     result = super.buffer[super.out++] & BYTE_MASK;



Mime
View raw message