public static PrintStream redirectOutput(File newOutput) throws IOException {
    return redirectOutput(newOutput, true);
  }
Get the vm's process id. On Linux, this returns the processId of the reaper thread.

@return the vm's process id.
geode-logging/src/main/java/org/apache/geode/logging/internal/OSProcess.java