]> 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>
Wed, 1 Jul 2015 15:47:34 +0000 (11:47 -0400)
This breaks lxc-test-concurrent.

This reverts commit fef9aa89e99285609d51848623f84ecd3a3109df.

src/lxc/lxccontainer.c

index 152906f377c6357bd8f08c819b021b189714f4b2..6f44975dcb630f3d5b1ea917aa29258133b2bef2 100644 (file)
@@ -753,10 +753,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)