code: def set_signal_handler(self, sigs=None):
          
          if sigs is None:
              sigs = (signal.SIGTERM, signal.SIGINT, signal.SIGUSR1, signal.SIGUSR2, signal.SIGHUP)
  
          func = self.manage_signal
          if os.name == "nt":  # pragma: no cover, no Windows implementation currently
              try:
                  import win32api
                  win32api.SetConsoleCtrlHandler(func, True)
              except ImportError:
                  version = ".".join([str(i) for i in os.sys.version_info[:2]])
                  raise Exception("pywin32 not installed for Python " + version)
          else:
              for sig in sigs:
                  signal.signal(sig, func)
docs: Set the signal handler to manage_signal (defined in this class)
  
          Only set handlers for:
          - signal.SIGTERM, signal.SIGINT
          - signal.SIGUSR1, signal.SIGUSR2
          - signal.SIGHUP
  
          :return: None