diff options
author | Zac Medico <zmedico@gentoo.org> | 2020-03-04 22:46:26 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2020-03-05 00:06:19 -0800 |
commit | d389b3b378d88b8c41dfaba2a90bc9643a9ba99e (patch) | |
tree | 8d5a663f1c41ebef45b879724829f5e66bd6f253 /bin/glsa-check | |
parent | Updates for portage-2.3.92 release (diff) | |
download | portage-d389b3b378d88b8c41dfaba2a90bc9643a9ba99e.tar.gz portage-d389b3b378d88b8c41dfaba2a90bc9643a9ba99e.tar.bz2 portage-d389b3b378d88b8c41dfaba2a90bc9643a9ba99e.zip |
Scheduler: use add_done_callback (bug 711322)
Use add_done_callback instead of addExistListener, in order to avoid
callback races like the SequentialTaskQueue exit listener race that
triggered bug 711322. The addExistListener method is prone to races
because its listeners are executed in quick succession. In contrast,
callbacks scheduled via add_done_callback are placed in a fifo
queue, ensuring that they execute in an order that is unsurprising
relative to other callbacks.
Bug: https://bugs.gentoo.org/711322
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/glsa-check')
0 files changed, 0 insertions, 0 deletions