Scheduler: avoid infinite loop after CTRL-C
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Mar 2011 03:29:57 +0000 (19:29 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Mar 2011 03:29:57 +0000 (19:29 -0800)
commitc051b01974fbfb1471b3fc60f8152cbec0b3034f
tree21039ea023fa6138f471698f8bacbc03b803ae83
parent79589a4ab283e2cd76452141d0a004a1cb347f24
Scheduler: avoid infinite loop after CTRL-C

If CTRL-C was received at certain times, it was possible for discarded
tasks to be erroneously left in Scheduler._running_tasks, which would
cause the main loop to run infinitely. Thanks to David James
<davidjames@google.com> for reporting this issue and helping to devise
a solution.
pym/_emerge/Scheduler.py