parameters: (self, name)
docstring: Kill process that matches name. NOTE: a killed process will
          continue to show up as active until the process monitor thread
          has caught that it has died.
          @param name: Process name
          @type  name: str
          @return: True if a process named name was removed from
          process monitor. A process is considered killed if its stop()
          method was called.
          @rtype: bool
docstring_summary: Kill process that matches name. NOTE: a killed process will
          continue to show up as active until the process monitor thread
          has caught that it has died.
docstring_tokens: Kill process that matches name . NOTE : a killed process will continue to show up as active until the process monitor thread has caught that it has died .
function: def kill_process(self, name):
          """
          Kill process that matches name. NOTE: a killed process will
          continue to show up as active until the process monitor thread
          has caught that it has died.
          @param name: Process name
          @type  name: str
          @return: True if a process named name was removed from
          process monitor. A process is considered killed if its stop()
          method was called.
          @rtype: bool
          """
          def isstring(s):
              """Small helper version to check an object is a string in
              a way that works for both Python 2 and 3
              """
              try:
                  return isinstance(s, basestring)
              except NameError:
                  return isinstance(s, str)
  
          if not isstring(name):
              raise RLException("kill_process takes in a process name but was given: %s"%name)
          logger.debug("ProcessMonitor.kill_process[%s]"%name)
          printlog("[%s] kill requested"%name)
          with self.plock:
              p = self.get_process(name)
              if p:
                  try:
                      # no need to accumulate errors, so pass in []
                      p.stop([])
                  except:
                      logger.error(traceback.format_exc())
                  return True
              else:
                  return False
function_tokens: def kill_process ( self , name ) : def isstring ( s ) : """Small helper version to check an object is a string in
              a way that works for both Python 2 and 3
              """ try : return isinstance ( s , basestring ) except NameError : return isinstance ( s , str ) if not isstring ( name ) : raise RLException ( "kill_process takes in a process name but was given: %s" % name ) logger . debug ( "ProcessMonitor.kill_process[%s]" % name ) printlog ( "[%s] kill requested" % name ) with self . plock : p = self . get_process ( name ) if p : try : # no need to accumulate errors, so pass in [] p . stop ( [ ] ) except : logger . error ( traceback . format_exc ( ) ) return True else : return False