added vsched
[util-vserver.git] / util-vserver / src / new-namespace.c
index 43862fc..f966080 100644 (file)
@@ -25,7 +25,6 @@
 #endif
 
 #include "util.h"
-#include "stack-start.h"
 #include "sys_clone.h"
 
 #include <sched.h>
@@ -37,7 +36,9 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <libgen.h>
+#include <errno.h>
 
+#define ENSC_WRAPPERS_PREFIX   "new-namespace: "
 #define ENSC_WRAPPERS_WAIT     1
 #include <wrappers.h>
 
@@ -92,11 +93,11 @@ int main(int argc, char *argv[])
 #endif
   switch (pid) {
     case -1    :
-      perror("clone()");
+      perror("new-namespace: clone()");
       exit(wrapper_exit_code);
     case 0     :
       execvp(argv[1], argv+1);
-      perror("execvp()");
+      perror("new-namespace: execvp()");
       exit(wrapper_exit_code);
     default    :
       exitLikeProcess(pid);