ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48746] exec task sometimes inserts extraneous newlines
Date Fri, 28 May 2010 16:35:02 GMT

Jesse Glick <> changed:

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

--- Comment #10 from Jesse Glick <> 2010-05-28 12:34:56 EDT ---
Caused by PumpStreamHandler.finish interrupting the thread, which can cause a
listener based on 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message