

@util.debuglog
def send_signal(self, pid, signum):
    is_sigkill = (hasattr(signal, 'SIGKILL') and (signum == signal.SIGKILL))
    if (pid in self.processes):
        process = self.processes[pid]
        hook_result = self.call_hook('before_signal', pid=pid, signum=signum)
        if ((not signum) and (not hook_result)):
            logger.debug(("before_signal hook didn't return True => signal %i is not sent to %i" % (signum, pid)))
        else:
            process.send_signal(signum)
        self.call_hook('after_signal', pid=pid, signum=signum)
    else:
        logger.debug(('process %s does not exist' % pid))

dataset/ETHPy150Open circus-tent/circus/circus/watcher.py Watcher.send_signal/VarMisuse@79/103 `is_sigkill`->`signum`