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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: