09 Jan, 2013
1 commit
-
The error handling in cgroup_event_listener.c did not correctly deal
with either an error opening either or
cgroup.event_control. Due to an uninitialized variable the program
exit code was undefined if either of these opens failed.This patch simplifies and corrects cgroup_event_listener.c error
handling by:
1. using err*() rather than printf(),exit()
2. depending on process exit to close open filesWith this patch failures always return non-zero error.
Signed-off-by: Greg Thelen
Acked-by: Li Zefan
Signed-off-by: Tejun Heo
08 Jan, 2013
1 commit
-
Move the cgroup_event_listener.c tool from Documentation into the new
tools/cgroup directory.This change involves wiring cgroup_event_listener.c into the tools/
make system so that is can be built with:
$ make tools/cgroupSigned-off-by: Greg Thelen
Signed-off-by: Tejun Heo