diff options
-rw-r--r-- | api.c | 2 | ||||
-rw-r--r-- | libcgroup.h | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -382,7 +382,7 @@ static int cg_set_control_value(char *path, char *val) fclose(control_file); return ECGROUPNOTALLOWED; } - return errno; + return ECGROUPVALUENOTEXIST; } fprintf(control_file, "%s", val); diff --git a/libcgroup.h b/libcgroup.h index 08db73b..d81ec39 100644 --- a/libcgroup.h +++ b/libcgroup.h @@ -117,6 +117,7 @@ enum cgroup_errors { ECGCONTROLLERCREATEFAILED, ECGFAIL, ECGROUPNOTINITIALIZED, + ECGROUPVALUENOTEXIST, }; #define CG_MAX_MSG_SIZE 256 |