[CRIU] [PATCH 1/3] dump: Introduce "post-dump" script action

Cyrill Gorcunov gorcunov at gmail.com
Tue Jul 16 06:50:00 EDT 2013


On Tue, Jul 16, 2013 at 02:46:29PM +0400, Pavel Emelyanov wrote:
> >  cr-dump.c | 26 +++++++++++++++++++++++---
> >  util.c    |  2 ++
> >  2 files changed, 25 insertions(+), 3 deletions(-)
> > 
> 
> > diff --git a/util.c b/util.c
> > index 69ecf5d..74c14ac 100644
> > --- a/util.c
> > +++ b/util.c
> > @@ -1,3 +1,5 @@
> > +#define _XOPEN_SOURCE
> > +
> >  #include <stdlib.h>
> >  #include <stdio.h>
> >  #include <stdarg.h>
> 
> Huh?

This needed to make system() call to return ret codes.

NOTES
       If the _XOPEN_SOURCE feature test macro is defined (before including any header files),
       then the macros described in wait(2) (WEXITSTATUS(), etc.) are  made  avail‐
       able when including <stdlib.h>.



More information about the CRIU mailing list