code: public static boolean isProcDead(String pid) {
          if (!OSInfo.isLinux()) {
              return false;
          }
  
          String path = "/proc/" + pid;
          File file = new File(path);
  
          if (!file.exists()) {
              LOG.info("Process " + pid + " is dead");
              return true;
          }
  
          return false;
      }
docs: This function is only for linux