mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Reshuffle call to kore_platform_worker_setcpu().
Its better to place this inside of kore_worker_privsep(), this way it'll be called for each process still and we can do it before we sandbox the processes completely.
This commit is contained in:
parent
21f466c8b6
commit
d49d65dfa0
@ -369,6 +369,9 @@ kore_worker_privsep(void)
|
|||||||
if (worker == NULL)
|
if (worker == NULL)
|
||||||
fatalx("%s called with no worker", __func__);
|
fatalx("%s called with no worker", __func__);
|
||||||
|
|
||||||
|
if (worker_set_affinity == 1)
|
||||||
|
kore_platform_worker_setcpu(worker);
|
||||||
|
|
||||||
pw = NULL;
|
pw = NULL;
|
||||||
|
|
||||||
/* Must happen before chroot. */
|
/* Must happen before chroot. */
|
||||||
@ -749,9 +752,6 @@ kore_worker_started(void)
|
|||||||
{
|
{
|
||||||
const char *chroot;
|
const char *chroot;
|
||||||
|
|
||||||
if (worker_set_affinity == 1)
|
|
||||||
kore_platform_worker_setcpu(worker);
|
|
||||||
|
|
||||||
if (worker->ps->skip_chroot)
|
if (worker->ps->skip_chroot)
|
||||||
chroot = "root";
|
chroot = "root";
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user