beat.py 文件源码

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

项目:amazonbeat 作者: awormuth 项目源码 文件源码
def kill(self):
        if sys.platform.startswith("win"):
            # proc.terminate on Windows does not initiate a graceful shutdown
            # through the processes signal handlers it just kills it hard. So
            # this sends a SIGBREAK. You cannot sends a SIGINT (CTRL_C_EVENT)
            # to a process group in Windows, otherwise Ctrl+C would be
            # sent.
            self.proc.send_signal(signal.CTRL_BREAK_EVENT)
        else:
            self.proc.terminate()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号