def get_process_running_pid(pid_file):
  try:
    with open(pid_file) as fp:
      return int(fp.readline())
  except ValueError, e:
    Log.print_critical("Error: Pid file %s is null" % pid_file)
dataset/ETHPy150Open XiaoMi/minos/build/build_utils.py/get_process_running_pid/original