]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup: Do not call exit from within the main library
authorDhaval Giani <dhaval.giani@gmail.com>
Fri, 4 Jun 2010 11:30:58 +0000 (13:30 +0200)
committerDhaval Giani <dhaval.giani@gmail.com>
Fri, 4 Jun 2010 11:39:18 +0000 (13:39 +0200)
commit974948a8753c9c79c6901ff795c9829d968c60a6
tree5692d5ff2e41de91e55112f358ae88b15a9952ec
parent8092139bec6ca0877cc786b5558ff20fa7304d35
libcgroup: Do not call exit from within the main library

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 <dhaval.giani@gmail.com>
src/lex.l