Summary: | pool connection managers for robustness/scalability | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Simon McVittie <smcv> |
Component: | fargo | Assignee: | Simon McVittie <smcv> |
Status: | NEW --- | QA Contact: | David Laban <david.laban> |
Severity: | enhancement | ||
Priority: | high | ||
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | milestone4.9 est=5h | ||
i915 platform: | i915 features: |
Description
Simon McVittie
2010-01-27 09:52:14 UTC
I'll take this bit. Sjoerd contributes: #!/usr/bin/env python import subprocess import atexit import os import signal import dbus def spawnbus(): process = subprocess.Popen ( [ "dbus-daemon", "--session", "--nofork", "--print-address" ], stdout = subprocess.PIPE, ) atexit.register (lambda p: os.kill (p.pid, signal.SIGKILL), process) address = process.stdout.readline().rstrip() return dbus.bus.BusConnection (address) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.