code: @Nullable
      private Integer waitFor(Process process) {
          try {
              return process.waitFor();
          } catch (InterruptedException e) {
              log.info("interrupted in Process.waitFor");
              return null;
          }
      }
docs: Wait for a given process.
  
  @param process the process one wants to wait for.