Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 896463 Details for
Bug 1098606
Need to change Selector from singleton to singleton per process (QPID-5637)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to make Selector pid-aware (one Selector per process)
pid_aware_selector.patch (text/plain), 692 bytes, created by
Mike Cressman
on 2014-05-16 16:12:04 UTC
(
hide
)
Description:
Patch to make Selector pid-aware (one Selector per process)
Filename:
MIME Type:
Creator:
Mike Cressman
Created:
2014-05-16 16:12:04 UTC
Size:
692 bytes
patch
obsolete
>diff --git a/qpid/python/qpid/selector.py b/qpid/python/qpid/selector.py >index ff94091..1782a55 100644 >--- a/qpid/python/qpid/selector.py >+++ b/qpid/python/qpid/selector.py >@@ -43,16 +43,18 @@ class Selector: > > lock = Lock() > DEFAULT = None >+ _current_pid = None > > @staticmethod > def default(): > Selector.lock.acquire() > try: >- if Selector.DEFAULT is None: >+ if Selector.DEFAULT is None or Selector._current_pid != os.getpid(): > sel = Selector() > atexit.register(sel.stop) > sel.start() > Selector.DEFAULT = sel >+ Selector._current_pid = os.getpid() > return Selector.DEFAULT > finally: > Selector.lock.release()
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 1098606
: 896463