processproxy.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:enterprise_gateway 作者: jupyter-incubator 项目源码 文件源码
def send_signal(self, signum):
        # if we have a local process, use its method, else determine if the ip is local or remote and issue
        # the appropriate version to signal the process.
        result = None
        if self.local_proc:
            if self.pgid > 0 and hasattr(os, "killpg"):
                try:
                    os.killpg(self.pgid, signum)
                    return result
                except OSError:
                    pass
            result = self.local_proc.send_signal(signum)
        else:
            if self.ip and self.pid > 0:
                if BaseProcessProxyABC.ip_is_local(self.ip):
                    result = self.local_signal(signum)
                else:
                    result = self.remote_signal(signum)
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号