ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28135] New: - <exec> task hangs Ant on some Windows configurations
Date Thu, 01 Apr 2004 17:08:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28135>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28135

<exec> task hangs Ant on some Windows configurations

           Summary: <exec> task hangs Ant on some Windows configurations
           Product: Ant
           Version: 1.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: patrick.luby@sun.com


On some Windows configuration running a Sun JVM (version of the JVM does not
matter), the <exec> will hang when the spawned process finishes.

The hanging occurs because the JVM does not close the underlying pipes that the
org.apache.tools.ant.taskdefs.PumpStreamHandler class reads from. As a result,
the PumpStreamHandler instances will be forever blocked in a read() call.

Attached is a patch to the PumpStreamHandler class that allows Ant to resume
operation after a reasonable period of time when this occurs.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message