]> git.ipfire.org Git - thirdparty/lxc.git/commit
Must unfreeze while stopping container
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Mon, 12 Jul 2010 13:13:18 +0000 (15:13 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 12 Jul 2010 13:13:18 +0000 (15:13 +0200)
commit371828c4a0a23b61d57889b7deb11390b6ff0f3e
tree8c8b12764e5e3cc4f30adcc3f3053272af37be61
parentba31511e05aa098a22552b1c8da39e80ae4a090c
Must unfreeze while stopping container

As pointed out by Dan Smith, when a container is being stopped, it must
also be unfrozen after posting the SIGKILL. Otherwise if the container
is frozen when the SIGKILL is posted, the SIGKILL will remain pending
and the lxc-stop command will block until lxc-unfreeze is explicitly
called).

(lxc-stop waits for the container to exit and close the socket but since
the container is frozen, lxc-stop will block).

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Matt Helsley <matthltc@us.ibm.com>
Acked-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/stop.c