1. 02 Apr, 2014 2 commits
  2. 01 Apr, 2014 5 commits
  3. 31 Mar, 2014 2 commits
  4. 29 Mar, 2014 2 commits
  5. 27 Mar, 2014 2 commits
  6. 26 Mar, 2014 1 commit
  7. 25 Mar, 2014 1 commit
  8. 24 Mar, 2014 4 commits
  9. 23 Mar, 2014 4 commits
  10. 21 Mar, 2014 6 commits
  11. 13 Mar, 2014 9 commits
  12. 11 Mar, 2014 2 commits
    • make failure to connect to cgmanager DEBUG instead of ERROR · 395d87ff
      Dwight Engen authored
      You can have both cgmanager and cgfs compiled in, and lxc will fall back
      at runtime to cgfs if it cannot connect to cgmanager, so print the failure
      to connect as a DEBUG like the code used to do.
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • cgmanager: avoid stray dbus connections · a2868fe9
      Serge Hallyn authored
      There are two parts to this fix.
      
      First, create a private DBusConnection manually, instead of using
      nih_dbus_connect.  The latter always creates a shared connection,
      which cannot be closed.  Note: creating an actual shared connection,
      mutexing it among all threads, and creating per-thread proxies would
      be an alternative - however we don't want long-lived connections as
      they tend not to be reliable (especially if cgmanager restarts).
      
      Second, use pthread_setspecific to create per-thread keys which can
      be associated with destructors.  Specify a destructor which closes
      the dbus connection.  If a thread dies while holding cgmanager,
      the connection will be closed.  Otherwise, we close the connection
      and unset the key.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>