diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-13 13:33:59 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-13 13:33:59 +0000 |
commit | 5c16f4a02dfee006b7fb8a04162ed511e3abc481 (patch) | |
tree | 1cc90011ce99c5a329eb707b25ecd8cc40569c4c /scripts | |
parent | 9fe31868a0369e0659872c52c92cf688910593ee (diff) | |
download | libcg-5c16f4a02dfee006b7fb8a04162ed511e3abc481.tar.gz libcg-5c16f4a02dfee006b7fb8a04162ed511e3abc481.tar.xz libcg-5c16f4a02dfee006b7fb8a04162ed511e3abc481.zip |
libcgroup: check for return code of fprintf()
From: Vivek Goyal <vgoyal@redhat.com>
o Adding a task to a particular cgroup currently does fprintf() and never
check the return code. Modify it to check for the return code in case
fprintf() and fflush() did not succeed.
o I ran into the issues when i can't add migration thread to
/container/admingroup/tasks and it will fail silently.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@133 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions