Unverified Commit 5f31d8f1 by Christian Brauner Committed by GitHub

Merge pull request #3193 from lifeng68/master

cgfsng: return attach fail if container stopped
parents f177506f e2cb2e74
......@@ -2223,7 +2223,7 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops, const char *name,
path = lxc_cmd_get_cgroup_path(name, lxcpath, h->controllers[0]);
/* not running */
if (!path)
continue;
return false;
fullpath = build_full_cgpath_from_monitorpath(h, path, "cgroup.procs");
ret = lxc_write_to_file(fullpath, pidstr, len, false, 0666);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment