]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Revert "do_lxcap_stop: wait until container is stopped"
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Apr 2015 19:56:10 +0000 (14:56 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Apr 2015 19:56:10 +0000 (14:56 -0500)
This breaks lxc-test-concurrent.

This reverts commit fef9aa89e99285609d51848623f84ecd3a3109df.

src/lxc/lxccontainer.c

index e86151c91a4871a342acc6673bcfbcf0ad108bbc..5b96b8c50c189c57813274a69ad50a19fc568b30 100644 (file)
@@ -852,10 +852,7 @@ static bool do_lxcapi_stop(struct lxc_container *c)
 
        ret = lxc_cmd_stop(c->name, c->config_path);
 
-       if (ret == 0)
-               return do_lxcapi_wait(c, "STOPPED", 10);
-
-       return false;
+       return ret == 0;
 }
 
 WRAP_API(bool, lxcapi_stop)