Uploaded image for project: 'Commons Exec'
  1. Commons Exec
  2. EXEC-33

PumpStreamHandler hangs if System.in is redirect to process input stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • None
    • Windows Vista

    Description

      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.

      Attachments

        1. EXEC33.patch
          5 kB
          Milos Kleint
        2. PumpStreamHandler.patch
          0.6 kB
          Marco Ferrante

        Activity

          People

            sgoeschl Siegfried Goeschl
            mferrante Marco Ferrante
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: