Steve Grubb pointed out at
http://article.gmane.org/gmane.comp.lib.libcg.devel/2485
that the additional check for EOF is unneeded since EOF != 3.
Remove this check
Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Acked-By: Jan Safranek <jsafrane@redhat.com>
* my daily life, I need some magic to help make them
* disappear :)
*/
- if (ret != 3 || ret == EOF) {
+ if (ret != 3) {
cgroup_dbg("read failed for pid_cgroup_fd ret %d\n",
ret);
last_errno = errno;