* Ivana Varekova <[email protected]> [2009-04-27 09:23:56]: > Fix of cgexec error handling - with this patch cgexec return the right > error message - not only cg internal error value > > Signed-off-by: Ivana Varekova <[email protected]> > --- > > cgexec.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/cgexec.c b/cgexec.c > index 167d873..0853894 100644 > --- a/cgexec.c > +++ b/cgexec.c > @@ -76,7 +76,8 @@ int main(int argc, char *argv[]) > /* Initialize libcg */ > ret = cgroup_init(); > if (ret) { > - fprintf(stderr, "libcgroup initialization failed:%d", ret); > + fprintf(stderr, "libcgroup initialization failed: %s\n", > + cgroup_strerror(ret)); > return ret; > }
Looks good Acked-by: Balbir Singh <[email protected]> -- Balbir ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
