]> git.ipfire.org Git - thirdparty/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)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 17:03:05 +0000 (13:03 -0400)
This breaks lxc-test-concurrent.

This reverts commit fef9aa89e99285609d51848623f84ecd3a3109df.

src/lxc/lxccontainer.c

index c2a18f2cb6bca3b540c33091acdd05a1c75c9e7c..08d788a7a2466a1a27e46493eaf8f5dbbcb2b363 100644 (file)
@@ -735,10 +735,7 @@ static bool 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;
 }
 
 static int do_create_container_dir(const char *path, struct lxc_conf *conf)