code: def maybe_send_signal(self, signum, include_pgrp=True):
      
      remote_pid = self._maybe_last_pid()
      if remote_pid is not None:
        safe_kill(remote_pid, signum)
      if include_pgrp:
        remote_pgrp = self._maybe_last_pgrp()
        if remote_pgrp:
          safe_kill(remote_pgrp, signum)
docs: Send the signal `signum` send if the PID and/or PGRP chunks have been received.
  
      No error is raised if the pid or pgrp are None or point to an already-dead process.