[
https://issues.apache.org/jira/browse/SSHD-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14986962#comment-14986962
]
Gustaf Lundh commented on SSHD-576:
-----------------------------------
Added a new patch. Since this is a timing issue, it was a bit hard to write a
good stable test case. The new patch I attached works fine, but is kinda ugly.
> InvertedShellWrapper would not process all output from spawned processes
> ------------------------------------------------------------------------
>
> Key: SSHD-576
> URL: https://issues.apache.org/jira/browse/SSHD-576
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 0.14.0
> Reporter: Gustaf Lundh
> Attachments: 0001-Fix.patch, 0001-Fix.patch
>
>
> In some circumstances, where a spawned process outputs data just before it
> exits, the InvertedShellWrapper could return from
> InvertedShellWrapper.pumpStreams() before all data had been handled.
> To ensure all data is read, do not allow exit until the shell's/process'
> output streams are totally empty.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)