Set a separate session/process_group
This commit is contained in:
parent
da133a6d11
commit
88e796e004
@ -179,6 +179,7 @@ bool containPrepareEnv(struct nsjconf_t * nsjconf)
|
|||||||
if (setpriority(PRIO_PROCESS, 0, 19) == -1 && errno != 0) {
|
if (setpriority(PRIO_PROCESS, 0, 19) == -1 && errno != 0) {
|
||||||
PLOG_W("setpriority(19)");
|
PLOG_W("setpriority(19)");
|
||||||
}
|
}
|
||||||
|
setsid();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user