On 11/16/2010 02:29 PM, Dhaval Giani wrote:
> 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<[email protected]>
> Signed-off-by: Dhaval Giani<[email protected]>
Acked-By: Jan Safranek <[email protected]>
>
> ---
> src/api.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: libcg/src/api.c
> ===================================================================
> --- libcg.orig/src/api.c
> +++ libcg/src/api.c
> @@ -2648,7 +2648,7 @@ int cgroup_get_current_controller_path(p
> * 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;
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel