From 6bbed85899d16b063df41ffc2cbf314402ad73e6 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 20 Nov 2017 17:08:29 +0300 Subject: Fixing Coverity warnings. CID 200496 CID 200494 CID 200490 CID 200489 CID 200483 CID 200482 CID 200472 CID 200465 --- src/nxt_port.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/nxt_port.c') diff --git a/src/nxt_port.c b/src/nxt_port.c index c63ea01b..4a07657d 100644 --- a/src/nxt_port.c +++ b/src/nxt_port.c @@ -311,10 +311,9 @@ nxt_port_process_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) process->ready = 1; + nxt_assert(nxt_queue_is_empty(&process->ports) == 0); + port = nxt_process_port_first(process); - if (nxt_slow_path(port == NULL)) { - return; - } nxt_debug(task, "process %PI ready", msg->port_msg.pid); @@ -348,7 +347,7 @@ nxt_port_mmap_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) fail_close: - close(msg->fd); + nxt_fd_close(msg->fd); } -- cgit