ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48746] exec task sometimes inserts extraneous newlines
Date Fri, 28 May 2010 16:35:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48746

Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Jesse Glick <jglick@netbeans.org> 2010-05-28 12:34:56 EDT ---
Caused by PumpStreamHandler.finish interrupting the thread, which can cause a
listener based on java.nio.channel to abruptly terminate with a
ClosedByInterruptException. I think somehow timing-dependent; the extra waiting
for output caused by useAvailable probably causes the pumper thread to hit the
JOIN_TIMEOUT, thus falling through to the backup behavior of interrupting it
until it dies.

Workaround on listener side is to forcibly clear the thread interrupt status
immediately before writing to the channel. Still subject to a race condition
but seems to work.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message