code: def send_sigint(self) -> None:
          
          import signal
          if sys.platform.startswith('win'):
              signal_to_send = signal.CTRL_C_EVENT
          else:
              signal_to_send = signal.SIGINT
          self._proc.send_signal(signal_to_send)
docs: Send a SIGINT to the process similar to if <Ctrl>+C were pressed.