Hi Don,

indeed the underlying libs (mainly the libnih-dbus ones) are not thread-safe.
We've had to serialize access to cgmanager-client in lxc for the same
reason.

The cgm_dbus_connect() happens once on every cgmanager action, not once
at libvirt startup.  So doing pthread_once() is not going to do the right
thing here IIUC.  Rather we should just take a pthread lock at connect
and drop it at disconnect.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1397130

Title:
  libvirt-bin crashes / refuses to restart if cgmanager is restarted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1397130/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to