]> git.ipfire.org Git - thirdparty/lxc.git/commit
do_lxcap_stop: wait until container is stopped
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Apr 2015 14:28:20 +0000 (09:28 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Apr 2015 14:28:20 +0000 (09:28 -0500)
commitfef9aa89e99285609d51848623f84ecd3a3109df
tree1b000f5ccd08a31991a5e286c0d8f483269e331e
parent69f97e3c12fb76cb7e7f740dc0bcd0aadf14451f
do_lxcap_stop: wait until container is stopped

In the past, lxc-cmd-stop would wait until the command pipe was closed
before returning, ensuring that the container monitor had exited.
Now that we accept the actual success return value, lxcapi_stop can
return success before the monitor has fully exited.

So explicitly wait for the container to stop, when lxc-cmd-stop returned
success.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c