{
this.worker = worker;
InputStream origStdout = worker.getCommandStdoutStream();
stdoutFanout = new InputStreamFanOut(origStdout);
stdoutForListeners = new BufferedReader(new InputStreamReader(stdoutFanout.makeNewInputStream()));
// add a listener thread which notifies the PipeCommandRunnerListener objects