public synchronized InputStream getErrorStream()

in src/com/pty4j/unix/UnixPtyProcess.java [130:147]


  public synchronized InputStream getErrorStream() {
    if (err == null) {
      if (myErrPty == null) {
        // If no separate errPty, then redirect stderr to stdout.
        // Therefore, return a dummy stream for error stream.
        err = new InputStream() {
          @Override
          public int read() {
            return -1;
          }
        };
      }
      else {
        err = myErrPty.getInputStream();
      }
    }
    return err;
  }