ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl ProcessMonitor.java
Date Sun, 06 Jan 2002 01:42:52 GMT
donaldp     02/01/05 17:42:52

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl
                        ProcessMonitor.java
  Log:
  Shutdown standard input of process - not sure if this is a wise move
  
  Revision  Changes    Path
  1.3       +5 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java
  
  Index: ProcessMonitor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/impl/ProcessMonitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProcessMonitor.java	6 Jan 2002 01:40:29 -0000	1.2
  +++ ProcessMonitor.java	6 Jan 2002 01:42:52 -0000	1.3
  @@ -21,7 +21,7 @@
    * It will also in the future do the same for stdin.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/01/06 01:40:29 $
  + * @version $Revision: 1.3 $ $Date: 2002/01/06 01:42:52 $
    */
   class ProcessMonitor
       extends AbstractLogEnabled
  @@ -201,6 +201,10 @@
               //thread being blocked. Probably need to write to
               //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;
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message