diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-09-13 11:17:05 +0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-09-13 14:32:14 +0200 |
commit | 15b4a7548f2e8f4e5dc0504b1c549edb0c7e0956 (patch) | |
tree | d82a58114f1a82d283c2caa1f9d0d3f8dfabdb36 /src | |
parent | a5e41bdb72a15c34971469535b4c3da16f0cce55 (diff) |
cgroup: add the missing setting of variable's value
set the value of variable "r" to the return value
of cg_set_attribute.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 3eeb475754..fba0b2f9de 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -264,7 +264,7 @@ void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const cha log_error("Failed to set memory.limit_in_bytes on %s: %s", path, strerror(-r)); sprintf(buf, "%" PRIu64 "\n", c->memory_soft_limit); - cg_set_attribute("memory", path, "memory.soft_limit_in_bytes", buf); + r = cg_set_attribute("memory", path, "memory.soft_limit_in_bytes", buf); if (r < 0) log_error("Failed to set memory.limit_in_bytes on %s: %s", path, strerror(-r)); } |