summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index 9ecad82f..849499d8 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -433,7 +433,7 @@ nxt_runtime_quit(nxt_task_t *task)
done = 0;
}
- if (nxt_runtime_is_main(rt)) {
+ if (rt->type == NXT_PROCESS_MAIN) {
nxt_main_stop_worker_processes(task, rt);
done = 0;
}
@@ -490,7 +490,7 @@ nxt_runtime_exit(nxt_task_t *task, void *obj, void *data)
return;
}
- if (nxt_runtime_is_main(rt)) {
+ if (rt->type == NXT_PROCESS_MAIN) {
if (rt->pid_file != NULL) {
nxt_file_delete(rt->pid_file);
}