[lxc-devel] [lxc/lxc] 9111aa: doc: Update Japanese lxc-autostart(1) for -a and -...

GitHub noreply at github.com
Tue Mar 11 14:56:10 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9111aa793259eb1de897af6add5bf0400e962f9f
      https://github.com/lxc/lxc/commit/9111aa793259eb1de897af6add5bf0400e962f9f
  Author: KATOH Yasufumi <karma at jazz.email.ne.jp>
  Date:   2014-03-11 (Tue, 11 Mar 2014)

  Changed paths:
    M doc/ja/lxc-autostart.sgml.in

  Log Message:
  -----------
  doc: Update Japanese lxc-autostart(1) for -a and -g options

update for commit e447a8a706cc786257bc755a25e6441a766b0a4d

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: 800648d24ad2791bc656e47f3a048c01fbe27587
      https://github.com/lxc/lxc/commit/800648d24ad2791bc656e47f3a048c01fbe27587
  Author: KATOH Yasufumi <karma at jazz.email.ne.jp>
  Date:   2014-03-11 (Tue, 11 Mar 2014)

  Changed paths:
    M doc/ja/lxc-autostart.sgml.in

  Log Message:
  -----------
  doc: Update Japanese lxc-autostart(1) for -A option

update for commit e582991fd00734436ad0cc95c42cc3d16fd3d229

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: a2868fe90b37f6d22cae1cff1574bac85d6a9891
      https://github.com/lxc/lxc/commit/a2868fe90b37f6d22cae1cff1574bac85d6a9891
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-03-11 (Tue, 11 Mar 2014)

  Changed paths:
    M src/lxc/cgmanager.c

  Log Message:
  -----------
  cgmanager: avoid stray dbus connections

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: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/1bc1269ba5f8...a2868fe90b37


More information about the lxc-devel mailing list