Set a separate session/process_group

This commit is contained in:
Robert Swiecki 2015-11-24 18:34:05 +01:00
parent da133a6d11
commit 88e796e004
2 changed files with 3 additions and 2 deletions

View File

@ -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;
} }