docs: def pid_exists(pid):
      """ Determines if a system process identifer exists in process table.
          """
      try:
          os.kill(pid, 0)
      except OSError as exc:
          return exc.errno == errno.EPERM
      else:
          return True