Related to Bug #26099, we may need to limit the number of connections per CM instance to avoid any leaks in tpsip. We should eventually do this anyway to limit the effect of a tpsip instance crashing. Estimate 5 hours, assuming we can use Sjoerd's code from another project to spawn dbus-daemons.
I'll take this bit.
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)