@Override
      public void run() {
        try {
          String line;
          while ((line = reader.readLine()) != null) {
            linecount++;
            lines.add(line);
          }
          reader.close();
        } catch (Exception ignored) {
        }
      }
Creates a process output reader for the given process.

@param p the process whose output should be read.
geode-core/src/main/java/org/apache/geode/internal/ProcessOutputReader.java