]> git.ipfire.org Git - thirdparty/lxc.git/commit
fix lxc-wait waiting forever for FREEZING, FROZEN, THAWED states
authorDwight Engen <dwight.engen@oracle.com>
Wed, 19 Dec 2012 00:15:33 +0000 (19:15 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 3 Jan 2013 23:14:07 +0000 (18:14 -0500)
commitd27b0806cdd7f4bf45a83b9c3dc97320ac18f492
tree41ad1b3950ee28f01f61bf6a50e95ec01c59f164
parente35cb41b8c187980825c9be2c628a137ffeeee6b
fix lxc-wait waiting forever for FREEZING, FROZEN, THAWED states

These states are kept by the kernel in the freezer.state cgroup item, and
are never set in handler->state with lxc_set_state(). If lxc transitions
a container to/from the freezer after an lxc-wait for one of the above
states has already started, the lxc-wait will never see the new state. This
change has lxc send the new state to the lxc-monitor socket.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/freezer.c
src/lxc/lxc_wait.c