Browse Source

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
master
Peter Donald 23 years ago
parent
commit
2b4f4a5945
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java

+ 4
- 0
proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java View File

@@ -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;
}


Loading…
Cancel
Save