Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 43130 invoked from network); 22 Sep 2009 21:50:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Sep 2009 21:50:45 -0000 Received: (qmail 34092 invoked by uid 500); 22 Sep 2009 21:50:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33982 invoked by uid 500); 22 Sep 2009 21:50:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33972 invoked by uid 99); 22 Sep 2009 21:50:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 21:50:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 21:50:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B224234C004 for ; Tue, 22 Sep 2009 14:50:16 -0700 (PDT) Message-ID: <808947536.1253656216222.JavaMail.jira@brutus> Date: Tue, 22 Sep 2009 14:50:16 -0700 (PDT) From: "Siegfried Goeschl (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (EXEC-33) PumpStreamHandler hangs if System.in is redirect to process input stream In-Reply-To: <1456399593.1230733004748.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/EXEC-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758458#action_12758458 ] Siegfried Goeschl commented on EXEC-33: --------------------------------------- The patch is long applied but my release candidate got stuck due to M2 and SVN problems many moons ago ... I give it another go now > 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.