Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203172 Details for
Bug 282808
portage-2.2_rc40 intermittent KeyError in PollScheduler._poll_loop
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
handle the KeyError
poll_keyerror.patch (text/plain), 732 bytes, created by
Zac Medico
on 2009-09-05 01:28:29 UTC
(
hide
)
Description:
handle the KeyError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-09-05 01:28:29 UTC
Size:
732 bytes
patch
obsolete
>Index: pym/_emerge/PollScheduler.py >=================================================================== >--- pym/_emerge/PollScheduler.py (revision 14184) >+++ pym/_emerge/PollScheduler.py (revision 14185) >@@ -123,7 +123,14 @@ > try: > while event_handlers: > f, event = self._next_poll_event() >- handler, reg_id = event_handlers[f] >+ try: >+ handler, reg_id = event_handlers[f] >+ except KeyError: >+ # This means unregister was called for a file descriptor >+ # that still had a pending event in _poll_event_queue. >+ # Since unregister has been called, we should assume that >+ # the event can be safely ignored. >+ continue > handler(f, event) > event_handled = True > except StopIteration:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282808
: 203172