nxt_unit.c (2024:cb12b9fde0ae) nxt_unit.c (2078:0996dd223cdd)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "nxt_main.h"
7#include "nxt_port_memory_int.h"
8#include "nxt_socket_msg.h"

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

5109 if (nxt_slow_path(new_ctx == NULL)) {
5110 nxt_unit_alert(ctx, "failed to allocate context");
5111
5112 return NULL;
5113 }
5114
5115 rc = nxt_unit_ctx_init(lib, new_ctx, data);
5116 if (nxt_slow_path(rc != NXT_UNIT_OK)) {
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "nxt_main.h"
7#include "nxt_port_memory_int.h"
8#include "nxt_socket_msg.h"

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

5109 if (nxt_slow_path(new_ctx == NULL)) {
5110 nxt_unit_alert(ctx, "failed to allocate context");
5111
5112 return NULL;
5113 }
5114
5115 rc = nxt_unit_ctx_init(lib, new_ctx, data);
5116 if (nxt_slow_path(rc != NXT_UNIT_OK)) {
5117 nxt_unit_free(ctx, new_ctx);
5117 nxt_unit_free(ctx, new_ctx);
5118
5118
5119 return NULL;
5119 return NULL;
5120 }
5121
5122 queue_fd = -1;
5123
5124 port = nxt_unit_create_port(&new_ctx->ctx);
5125 if (nxt_slow_path(port == NULL)) {
5126 goto fail;
5127 }

--- 1668 unchanged lines hidden ---
5120 }
5121
5122 queue_fd = -1;
5123
5124 port = nxt_unit_create_port(&new_ctx->ctx);
5125 if (nxt_slow_path(port == NULL)) {
5126 goto fail;
5127 }

--- 1668 unchanged lines hidden ---