From: Zac Medico Date: Thu, 9 Feb 2012 07:25:09 +0000 (-0800) Subject: EventLoop: fix inverted may_block logic X-Git-Tag: v2.2.0_alpha86~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e6cf0c2689b219ce894d1b18be4e514acac508a7;p=portage.git EventLoop: fix inverted may_block logic This caused emerge to consume 100% cpu. --- diff --git a/pym/portage/util/_eventloop/EventLoop.py b/pym/portage/util/_eventloop/EventLoop.py index c2ba1f2cd..3f4d35445 100644 --- a/pym/portage/util/_eventloop/EventLoop.py +++ b/pym/portage/util/_eventloop/EventLoop.py @@ -157,9 +157,9 @@ class EventLoop(object): if not self._poll_event_queue: if may_block: - timeout = 0 - else: timeout = None + else: + timeout = 0 self._poll(timeout=timeout) try: