assets.py 文件源码

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

项目:flask-boilerplate 作者: MarcFord 项目源码 文件源码
def gulp_exited_cb(future):
        if future.exception():
            print(traceback.format_exc())

            children = psutil.Process().children(recursive=True)

            for child in children:
                print('>>> Killing pid {}'.format(child.pid))

                child.send_signal(SIGTERM)

            print('>>> Exiting')

            # It would be nice to be able to raise a CommandError or use
            # sys.kill here but neither of those stop the runserver instance
            # since we're in a thread. This method is used in django as well.
            os._exit(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号