code: function addListenersToStream(listeners, stream) {
      var evt, callback;
      if (listeners) {
          for (evt in listeners) {
              if (listeners.hasOwnProperty(evt)) {
                  callback = listeners[evt];
                  stream.on(evt, callback);
              }
          }
      }
  }
docs: Controller support for adding listeners to subprocess stream upon call