EventLoop: make _poll/_run_timeouts re-entrant
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Feb 2012 01:22:56 +0000 (17:22 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Feb 2012 01:22:56 +0000 (17:22 -0800)
commit6afd0e508eaf1f9040a20ed670cd6cf7a3a07517
treee64842bd08b1e8fc69dd5bce54339b8f947b683a
parentd806b859e0a7181c30bd13a7714cd47e5a582314
EventLoop: make _poll/_run_timeouts re-entrant

This fixes infinite loops triggered by Ctrl-C, where timeout calls
would exhaust the poll event queue because _poll was not re-entrant.
Now, re-entrance is only prohibited for individual callback functions,
in order to protect against infinite recursion.
pym/portage/util/_eventloop/EventLoop.py