PollScheduler: use idle_add to check termination
authorZac Medico <zmedico@gentoo.org>
Mon, 13 Feb 2012 06:43:46 +0000 (22:43 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 13 Feb 2012 06:43:46 +0000 (22:43 -0800)
commit8346a62a08c91de8b7672faa0ebfb91d0e647fa0
tree7a880ea7ba9d4ce95cd340d84987af051b9f6135
parent9997bb9c81e0742060dc795e4e0397db4cbfb5c2
PollScheduler: use idle_add to check termination

This fixes a regression in termination signal handling since commit
8c1fcf5a9ba9fa4d406a4d0cc284fe73a84f5a63, which cause termination
signals to be ignored until a running job had exited. This regression
is not really noticeable for Ctrl-C handling, since in that case the
SIGINT propagets to subprocesses, causing them to exit and trigger a
_schedule() call whichtriggers a termination check.
pym/_emerge/PollScheduler.py
pym/_emerge/QueueScheduler.py