if (setpriority(PRIO_PROCESS, 0, 19) == -1 && errno != 0) {
PLOG_W("setpriority(19)");
}
+ setsid();
return true;
}
PLOG_E("CHROOT('/new_root')");
return false;
}
-
+
if (chdir(nsjconf->cwd) == -1) {
PLOG_E("chdir('%s')", nsjconf->cwd);
return false;
return;
}
- pid_t pid = syscall(__NR_clone, (uintptr_t)flags, NULL, NULL, NULL, (uintptr_t)0);
+ pid_t pid = syscall(__NR_clone, (uintptr_t) flags, NULL, NULL, NULL, (uintptr_t) 0);
if (pid == 0) {
subprocNewProc(nsjconf, fd_in, fd_out, fd_err, pipefd[1]);
}