[CRIU][PATCH 2/3] zdtm: It's need define CLONE_NEWPID for
redhat-el5
Victor konyashkin
vkonyashkin at parallels.com
Tue Jul 31 07:02:48 EDT 2012
Please, take a look at patch.
On Thu, 2012-07-19 at 12:18 +0400, Andrey Wagin wrote:
> Acked-by: Andrey Wagin <avagin at gmail.com>
>
> 2012/7/19 vkonyashkin <vkonyashkin at parallels.com>:
> > The patch allows define CLONE_NEWPID for redhat-el5 to avoid error:
> > test_init.c:114: error: 'CLONE_NEWPID' undeclared (first use in this function)
> >
> > Signed-off-by: Victor Konyashkin <vkonyashkin at parallels.com>
> > ---
> > test/zdtm/lib/test_init.c | 4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> >
> > diff --git a/test/zdtm/lib/test_init.c b/test/zdtm/lib/test_init.c
> > index a75c335..5d9422a 100644
> > --- a/test/zdtm/lib/test_init.c
> > +++ b/test/zdtm/lib/test_init.c
> > @@ -11,6 +11,10 @@
> > #include <fcntl.h>
> >
> > #define STACK_SIZE (8 * 4096)
> > +#ifndef CLONE_NEWPID
> > +/* CLONE_NEWPID since Linux 2.6.24 */
> > +#define CLONE_NEWPID 0x20000000
> > +#endif
> >
> > static int sig_received;
> > static char dir[PATH_MAX];
> > --
> > 1.5.2.2
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list