Commit fc3a5ebd authored by Victor Konyashkin's avatar Victor Konyashkin Committed by Pavel Emelyanov

zdtm: It's need define CLONE_NEWPID for redhat-el5

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: 's avatarVictor Konyashkin  <vkonyashkin@parallels.com>
Acked-by: 's avatarAndrey Wagin <avagin@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9d0875a8
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment