On Thu, May 07, 2009 at 01:08:40PM +0900, Ken'ichi Ohmichi wrote:
> 
> Hi,
> 
> This patch clarifies the infinite loop.
> 

Nice cleanup!

> 
> Thanks
> Ken'ichi Ohmichi
> 
> Signed-off-by: Ken'ichi Ohmichi <[email protected]>

Acked-by: Dhaval Giani <[email protected]>

> ---
> --- libcgroup-0.34/src/daemon/cgrulesengd.c.orig      2009-04-07 
> 16:11:46.000000000 +0900
> +++ libcgroup-0.34/src/daemon/cgrulesengd.c   2009-04-07 16:12:53.000000000 
> +0900
> @@ -371,8 +371,9 @@ int cgre_create_netlink_socket_process_m
>       }
>       cgroup_dbg("sent\n");
> 
> -     for(memset(buff, 0, sizeof(buff)), from_nla_len = sizeof(from_nla);
> -     ; memset(buff, 0, sizeof(buff)), from_nla_len = sizeof(from_nla)) {
> +     for(;;) {
> +             memset(buff, 0, sizeof(buff));
> +             from_nla_len = sizeof(from_nla);
>               struct nlmsghdr *nlh = (struct nlmsghdr*)buff;
>               memcpy(&from_nla, &kern_nla, sizeof(from_nla));
>               recv_len = recvfrom(sk_nl, buff, BUFF_SIZE, 0,
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel

-- 
regards,
Dhaval

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to