diff options
Diffstat (limited to '')
-rw-r--r-- | src/nxt_process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c index 33af310d..97b51c4e 100644 --- a/src/nxt_process.c +++ b/src/nxt_process.c @@ -46,6 +46,8 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process) process->pid = nxt_pid; process->init->port->pid = nxt_pid; + rt->types = 0; + nxt_runtime_process_add(rt, process); nxt_process_start(task, process->init); @@ -94,7 +96,7 @@ nxt_process_start(nxt_task_t *task, nxt_process_init_t *process) thread = task->thread; rt = thread->runtime; - rt->type = process->type; + rt->types |= (1U << process->type); engine = thread->engine; |