code: def _main(self):
          
          self.set_proctitle(self.name)
          self.set_signal_handler()
  
          logger.info("process for module %s is now running (pid=%d)", self.name, os.getpid())
  
          # Will block here!
          try:
              self.main()
          except (IOError, EOFError):
              pass
              # logger.warning('[%s] EOF exception: %s', self.name, traceback.format_exc())
          except Exception as exp:  # pylint: disable=broad-except
              logger.exception('main function exception: %s', exp)
  
          self.do_stop()
  
          logger.info("process for module %s is now exiting (pid=%d)", self.name, os.getpid())
          exit()
docs: module "main" method. Only used by external modules.
  
          :return: None