From: Weng Meiling <wengmeiling.w...@huawei.com> When setting the value of cgroup's control file by cgset -r, it's more appositely to yield an error when user try to set a read-only file or set a file not existed. So fix this by copying the dirty value in function cgroup_copy_controller_values().
Signed-off-by: Weng Meiling <wengmeiling.w...@huawei.com> --- src/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api.c b/src/api.c index e5e1959..2a60b40 100644 --- a/src/api.c +++ b/src/api.c @@ -1512,6 +1512,7 @@ static int cgroup_copy_controller_values(struct cgroup_controller *dst, dst_val = dst->values[i]; strncpy(dst_val->value, src_val->value, CG_VALUE_MAX); strncpy(dst_val->name, src_val->name, FILENAME_MAX); + dst_val->dirty = src_val->dirty; } err: return ret; -- 1.8.3 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel