[CRIU][PATCH 2/3] zdtm: It's need define CLONE_NEWPID for redhat-el5
vkonyashkin
vkonyashkin at parallels.com
Thu Jul 19 03:55:26 EDT 2012
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
More information about the CRIU
mailing list