def _watch_workers(self, check_interval=5):
        keep_running = True
        while keep_running:
            self._start_workers()

            try:
                try:
                    sleep(check_interval)
                    self._reap_workers()
                except self.Stop:
                    logger.debug('Waiting for all workers to exit')
                    keep_running = False
                    self._reap_workers(True)
            except __HOLE__, e:
                if e.errno != errno.ECHILD:
                    logger.exception('Failed to wait for any worker to exit')
                else:
                    logger.debug('No alive workers left')
dataset/ETHPy150Open momyc/gevent-fastcgi/gevent_fastcgi/server.py/FastCGIServer._watch_workers