original_docstring: 
      Check the status of process and pull out error messages.
      
docstring: Check the status of process and pull out error messages.
docstring_tokens: Check the status of process and pull out error messages .
code: def check_status():
      '''
      Check the status of process and pull out error messages.
      '''
      global update_err_msg, polling_err_msg
      if not update_proc:
          update_status = 'not started'
      elif update_proc.poll() is None:
          update_status = 'running({})'.format(update_proc.pid)
      else:  # dead
          update_status = 'exited({})'.format(update_proc.returncode)
          if update_err_msg == '':  # haven't pull out
              update_err_msg = update_proc.stderr.read().decode('utf-8')
  
      if not polling_proc:
          polling_status = 'not started'
      elif polling_proc.poll() is None:
          polling_status = 'running({})'.format(polling_proc.pid)
      else:  # dead
          polling_status = 'exited({})'.format(polling_proc.returncode)
          if polling_err_msg == '':  # haven't pull out
              polling_err_msg = polling_proc.stderr.read().decode('utf-8')
  
      # regenerate docs
      subprocess.getstatusoutput(DOCS_CMD)
  
      return update_status, polling_status
code_tokens: def check_status ( ) : global update_err_msg , polling_err_msg if not update_proc : update_status = 'not started' elif update_proc . poll ( ) is None : update_status = 'running({})' . format ( update_proc . pid ) else : update_status = 'exited({})' . format ( update_proc . returncode ) if update_err_msg == '' : update_err_msg = update_proc . stderr . read ( ) . decode ( 'utf-8' ) if not polling_proc : polling_status = 'not started' elif polling_proc . poll ( ) is None : polling_status = 'running({})' . format ( polling_proc . pid ) else : polling_status = 'exited({})' . format ( polling_proc . returncode ) if polling_err_msg == '' : polling_err_msg = polling_proc . stderr . read ( ) . decode ( 'utf-8' ) subprocess . getstatusoutput ( DOCS_CMD ) return update_status , polling_status
short_docstring: Check the status of process and pull out error messages.
short_docstring_tokens: Check the status of process and pull out error messages .
comment: '''
      Check the status of process and pull out error messages.
      '''$SEP$# dead$SEP$# haven't pull out$SEP$# dead$SEP$# haven't pull out$SEP$# regenerate docs