]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/state.c
Support stopping containers concurrently
authorS.Çağlar Onur <caglar@10ur.org>
Wed, 17 Apr 2013 21:15:51 +0000 (17:15 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 23 Apr 2013 23:01:08 +0000 (01:01 +0200)
commitfd37327f57a6d53692babcaf69dfbd8f62e59918
tree0a57ec16127d5ed0e7c7bd5e457ffa153dc851b5
parentcf0f903326cf3cdd10f834c1bbc627fd81e06044
Support stopping containers concurrently

Trying to stop multiple containers concurrently ends up with "cgroup is not mounted" errors as multiple threads corrupts the shared variables.
Fix that stack corruption and start to use getmntent_r to support stopping multiple containers concurrently.

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c
src/lxc/freezer.c
src/lxc/state.c