nxt_runtime.c (251:930633c89ea8) nxt_runtime.c (252:f80fdef4e4d4)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

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

736
737 interface = nxt_service_get(rt->services, "engine", rt->engine);
738 if (interface == NULL) {
739 return NXT_ERROR;
740 }
741
742 rt->engine = interface->name;
743
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

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

736
737 interface = nxt_service_get(rt->services, "engine", rt->engine);
738 if (interface == NULL) {
739 return NXT_ERROR;
740 }
741
742 rt->engine = interface->name;
743
744 ret = nxt_file_name_create(rt->mem_pool, &file_name, "s%Z", rt->pid);
744 ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%Z", rt->pid);
745 if (nxt_slow_path(ret != NXT_OK)) {
746 return NXT_ERROR;
747 }
748
749 rt->pid_file = file_name.start;
750
751 ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%Z", rt->log);
752 if (nxt_slow_path(ret != NXT_OK)) {

--- 1077 unchanged lines hidden ---
745 if (nxt_slow_path(ret != NXT_OK)) {
746 return NXT_ERROR;
747 }
748
749 rt->pid_file = file_name.start;
750
751 ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%Z", rt->log);
752 if (nxt_slow_path(ret != NXT_OK)) {

--- 1077 unchanged lines hidden ---