nxt_process.c (125:5cc5002a788e) nxt_process.c (138:59fc46dd5e1d)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_master_process.h>

--- 68 unchanged lines hidden (view full) ---

77 nxt_runtime_t *rt;
78 nxt_event_engine_t *engine;
79 const nxt_event_interface_t *interface;
80
81 nxt_log(task, NXT_LOG_INFO, "%s started", process->name);
82
83 nxt_process_title(task, "nginext: %s", process->name);
84
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_master_process.h>

--- 68 unchanged lines hidden (view full) ---

77 nxt_runtime_t *rt;
78 nxt_event_engine_t *engine;
79 const nxt_event_interface_t *interface;
80
81 nxt_log(task, NXT_LOG_INFO, "%s started", process->name);
82
83 nxt_process_title(task, "nginext: %s", process->name);
84
85 nxt_random_init(&nxt_random_data);
85 thread = task->thread;
86
86
87 nxt_random_init(&thread->random);
88
87 if (process->user_cred != NULL && getuid() == 0) {
88 /* Super-user. */
89
90 ret = nxt_user_cred_set(task, process->user_cred);
91 if (ret != NXT_OK) {
92 goto fail;
93 }
94 }
95
89 if (process->user_cred != NULL && getuid() == 0) {
90 /* Super-user. */
91
92 ret = nxt_user_cred_set(task, process->user_cred);
93 if (ret != NXT_OK) {
94 goto fail;
95 }
96 }
97
96 thread = task->thread;
97 rt = thread->runtime;
98
99 rt->types |= (1U << process->type);
100
101 engine = thread->engine;
102
103 /* Update inherited master process event engine and signals processing. */
104 engine->signals->sigev = process->signals;

--- 466 unchanged lines hidden ---
98 rt = thread->runtime;
99
100 rt->types |= (1U << process->type);
101
102 engine = thread->engine;
103
104 /* Update inherited master process event engine and signals processing. */
105 engine->signals->sigev = process->signals;

--- 466 unchanged lines hidden ---