code: def sigint_handler(self, signum: int, frame) -> None:
          
          if self.cur_pipe_proc_reader is not None:
              # Pass the SIGINT to the current pipe process
              self.cur_pipe_proc_reader.send_sigint()
  
          # Check if we are allowed to re-raise the KeyboardInterrupt
          if not self.sigint_protection:
              raise KeyboardInterrupt("Got a keyboard interrupt")
docs: Signal handler for SIGINTs which typically come from Ctrl-C events.
  
          If you need custom SIGINT behavior, then override this function.
  
          :param signum: signal number
          :param frame