Eclose(p[1][1]);
l = Eread(p[1][0], &c, 1);
- if (l!=1) exitLikeProcess(pid);
+ if (l!=1) exitLikeProcess(pid,0);
l = Eread(p[1][0], &c, 1);
- if (l!=0) exitLikeProcess(pid);
+ if (l!=0) exitLikeProcess(pid,0);
}
}
static void
-newNamespace()
+newNamespace(char const *cmd)
{
pid_t pid;
#ifdef NDEBUG
case 0 :
break;
default :
- exitLikeProcess(pid);
+ exitLikeProcess(pid, cmd);
}
}
else if (optind==argc && (do_new || do_enter))
WRITE_MSG(2, "No command specified; try '--help' for more information\n");
else {
- if (do_new) newNamespace();
+ if (do_new) newNamespace(argv[optind]);
else if (do_set) setNamespace();
else if (do_cleanup) cleanupNamespace();
else if (do_enter) enterNamespace(xid);