* Dhaval Giani <[email protected]> [2010-06-04 13:30:58]:
> The autogenerated code fromt the lexer was calling exit on a
> fatal error. Do not do that. Instead log the message.
>
> While it is still not clear if this is the correct response
> for YY_FATAL_ERROR, we need to gracefully handle errors, and
> since this is a path which is very rarely hit, this is still
> a low risk change and so we will merge it.
>
> Signed-off-by: Dhaval Giani <[email protected]>
>
> Index: libcg/src/lex.l
> ===================================================================
> --- libcg.orig/src/lex.l
> +++ libcg/src/lex.l
> @@ -13,9 +13,12 @@
>
> %{
> #include <string.h>
> +#include <libcgroup.h>
> +#include <libcgroup-internal.h>
> #include "parse.h"
> int line_no = 1;
>
> +#define YY_FATAL_ERROR(msg) cgroup_dbg(%s)
I think we need more than cgroup_dbg() here. I'll send out a patch for
it later.
> %}
>
> %%
>
>
--
Three Cheers,
Balbir
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel