parameters: (pid)
docstring: Check For the existence of a unix pid.
          shamelessly taken from stackoverflow
          http://stackoverflow.com/questions/568271/how-to-check-if-there-exists-a-process-with-a-given-pid
      :param pid: process id of the process in question
      :return: boolean
docstring_summary: Check For the existence of a unix pid.
          shamelessly taken from stackoverflow
          http://stackoverflow.com/questions/568271/how-to-check-if-there-exists-a-process-with-a-given-pid
      :param pid: process id of the process in question
      :return: boolean
docstring_tokens: Check For the existence of a unix pid . shamelessly taken from stackoverflow http : // stackoverflow . com / questions / 568271 / how - to - check - if - there - exists - a - process - with - a - given - pid : param pid : process id of the process in question : return : boolean
function: def check_pid(pid):
      """
      Check For the existence of a unix pid.
          shamelessly taken from stackoverflow
          http://stackoverflow.com/questions/568271/how-to-check-if-there-exists-a-process-with-a-given-pid
      :param pid: process id of the process in question
      :return: boolean
      """
      try:
          os.kill(pid, 0)
      except OSError:
          return False
      else:
          return True
function_tokens: def check_pid ( pid ) : try : os . kill ( pid , 0 ) except OSError : return False else : return True