On Mon, Apr 27, 2009 at 09:23:56AM +0200, Ivana Varekova wrote: > 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]>
Acked-by: Dhaval Giani <[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; > } > > > > ------------------------------------------------------------------------------ > 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 -- regards, Dhaval ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
