wsgi.py 文件源码

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

项目:bilean 作者: openstack 项目源码 文件源码
def _verify_and_respawn_children(self, pid, status):
        if len(self.stale_children) == 0:
            LOG.debug('No stale children')

        if os.WIFEXITED(status) and os.WEXITSTATUS(status) != 0:
            LOG.error(_LE('Not respawning child %d, cannot '
                          'recover from termination'), pid)
            if not self.children and not self.stale_children:
                LOG.info(_LI('All workers have terminated. Exiting'))
                self.running = False
        else:
            if len(self.children) < self.conf.workers:
                self.run_child()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号