From 2b4f4a5945fb02365d506881aae29c48e99e3f4c Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 6 Jan 2002 01:42:52 +0000 Subject: [PATCH] Shutdown standard input of process - not sure if this is a wise move git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270554 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/myrmidon/framework/exec/impl/ProcessMonitor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java index fc94e1ddb..5fe48fdc1 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java @@ -202,6 +202,10 @@ class ProcessMonitor //stdin in another thread //copy( m_input, m_process.getOutputStream() ); + //Should we shutdown the processes input stream ? + //Why not - at least for now + IOUtil.shutdownStream( m_process.getOutputStream() ); + IOUtil.shutdownStream( m_input ); m_input = null; }