code: def handle_signal(self, signum, frame):
          
          # it is a SIGINT ?
          if signum == signal.SIGINT:
              logging.info('shut down cleanly')
              asyncio.ensure_future(self.apply_command(globals.ExitCommand()))
          elif signum == signal.SIGUSR1:
              if isinstance(self.current_buffer, SearchBuffer):
                  self.current_buffer.rebuild()
                  self.update()
docs: handles UNIX signals
  
          This function currently just handles SIGUSR1. It could be extended to
          handle more
  
          :param signum: The signal number (see man 7 signal)
          :param frame: The execution frame
              (https://docs.python.org/2/reference/datamodel.html#frame-objects)