nxt_unit.c (1438:5e5a3897e0cd) nxt_unit.c (1446:ad6265786871)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include <stdlib.h>
7
8#include "nxt_main.h"

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

4307 rc = NXT_UNIT_ERROR;
4308 goto unlock;
4309 }
4310
4311 new_port->port = *port;
4312
4313 rc = nxt_unit_port_hash_add(&lib->ports, &new_port->port);
4314 if (nxt_slow_path(rc != NXT_UNIT_OK)) {
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include <stdlib.h>
7
8#include "nxt_main.h"

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

4307 rc = NXT_UNIT_ERROR;
4308 goto unlock;
4309 }
4310
4311 new_port->port = *port;
4312
4313 rc = nxt_unit_port_hash_add(&lib->ports, &new_port->port);
4314 if (nxt_slow_path(rc != NXT_UNIT_OK)) {
4315 nxt_unit_alert(ctx, "add_port: %d,%d hash_add failed",
4316 port->id.pid, port->id.id);
4317
4315 goto unlock;
4316 }
4317
4318 nxt_queue_insert_tail(&process->ports, &new_port->link);
4319
4320 rc = NXT_UNIT_OK;
4321
4322 new_port->process = process;

--- 673 unchanged lines hidden ---
4318 goto unlock;
4319 }
4320
4321 nxt_queue_insert_tail(&process->ports, &new_port->link);
4322
4323 rc = NXT_UNIT_OK;
4324
4325 new_port->process = process;

--- 673 unchanged lines hidden ---