]> git.proxmox.com Git - mirror_lxcfs.git/commit - lxcfs.c
use threads when safe
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 19 May 2015 21:27:05 +0000 (14:27 -0700)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 19 May 2015 22:31:40 +0000 (15:31 -0700)
commit38a76a918f48f0c3f06f0c4d961a5bd1631ff05a
treeae55258b3ae060c8de55dd59b0d7a1e71720f188
parentcde8fac3454903900de83bf9389c866b0cdbe4d6
use threads when safe

libnih, when not built with --enable-threading, cannot be safely
used by a threaded application.  Detect whether it is built to be
threadsafe using a new libnih helper, and, if so, run threaded by
(a) not passing '-s' to fuse, and (b) making the dbus connection
and detected api version thread-local.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgmanager.c
configure.ac
lxcfs.c