_generateFlagOptions(): fixed a case expression; formerly x"foo" ==
[util-vserver.git] / util-vserver / src / new-namespace.c
index c7460bf..9d50a30 100644 (file)
@@ -25,7 +25,6 @@
 #endif
 
 #include "util.h"
-#include "wrappers.h"
 #include "stack-start.h"
 
 #include <stdio.h>
 #include <sys/wait.h>
 #include <sched.h>
 
+#define ENSC_WRAPPERS_CLONE    1
+#define ENSC_WRAPPERS_WAIT     1
+#include <wrappers.h>
+
 #ifndef CLONE_NEWNS
 #  define CLONE_NEWNS 0x00020000
 #endif
@@ -91,7 +94,11 @@ int main(int argc, char *argv[])
   if (!strcmp(argv[1], "--version")) showVersion();
   if (!strcmp(argv[1], "--"))        ++argv;
 
+#ifdef NDEBUG    
   pid = Eclone(childFunc, STACK_START(buf), CLONE_NEWNS|CLONE_VFORK|SIGCHLD, argv+1);
+#else
+  pid = Eclone(childFunc, STACK_START(buf), CLONE_NEWNS|SIGCHLD, argv+1);
+#endif
   p   = Ewait4(pid, &status, 0,0);
 
   if (WIFEXITED(status)) return WEXITSTATUS(status);