]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgmanager: switch to TLS
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 4 Mar 2014 18:18:08 +0000 (12:18 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 4 Mar 2014 22:34:34 +0000 (17:34 -0500)
commitb149d22a0e0838d7e7067d3b0a06e0449b5fedeb
treef2b49ab4886b9b4ba927825ebb4ec76d4ff53799
parent7e4dfe0bc1e715ccebca930939429aca25a17655
cgmanager: switch to TLS

Drop the thread mutex.  Set a (TLS) boolean at container start to
indicate that the connection should be kept open;  set it back to false
only when container start is complete.  Every cgm_ method opens the
connection if not already open, and closes it if cgm_keep_connection
is false.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c