commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] Commented: (EXEC-33) PumpStreamHandler hangs if System.in is redirect to process input stream
Date Mon, 28 Sep 2009 09:16:16 GMT

    [ https://issues.apache.org/jira/browse/EXEC-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760195#action_12760195
] 

Henri Biestro commented on EXEC-33:
-----------------------------------

Btw, the same pb occured on Mac OSX with unit tests hanging, even with the fix.

Committed a modification:
URL: http://svn.apache.org/viewvc?rev=818863&view=rev
Log: 
On a Mac, the unit tests never finish. Culprit is InputStreamPumper which sets its stop member
in the run method; however, run might really be executed after the stopProcessing method is
called if the process thread completes before the InputStreamPumper starts. 

Modified: 
    commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/InputStreamPumper.java


> PumpStreamHandler hangs if System.in is redirect to process input stream
> ------------------------------------------------------------------------
>
>                 Key: EXEC-33
>                 URL: https://issues.apache.org/jira/browse/EXEC-33
>             Project: Commons Exec
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows Vista
>            Reporter: Marco Ferrante
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.0.1
>
>         Attachments: EXEC33.patch, PumpStreamHandler.patch
>
>
> When process input is redirected using a PumpStreamHandler, e.g.
>       PumpStreamHandler streamHanlder = new PumpStreamHandler(out, err, System.in); 
>       exec.setStreamHandler(streamHanlder);
>       MockExecuteResultHandler handler = new MockExecuteResultHandler();
>       exec.execute(cl, handler);
> the process hangs and never exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message