nxt_poll_engine.c (65:10688b89aa16) nxt_poll_engine.c (494:7c83ddcc1c42)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

552
553 /* Mark the poll entry to ignore it by the kernel. */
554 pfd->fd = -1;
555 goto next;
556 }
557
558 ev = phe->event;
559
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

552
553 /* Mark the poll entry to ignore it by the kernel. */
554 pfd->fd = -1;
555 goto next;
556 }
557
558 ev = phe->event;
559
560 nxt_debug(ev->task, "poll: fd:%d ev:%04uXi rd:%d %wr:%d",
560 nxt_debug(ev->task, "poll: fd:%d ev:%04uXi rd:%d wr:%d",
561 fd, events, ev->read, ev->write);
562
563 if (nxt_slow_path((events & POLLNVAL) != 0)) {
564 nxt_log(ev->task, NXT_LOG_CRIT,
565 "poll() error fd:%d ev:%04Xd rev:%04uXi",
566 fd, pfd->events, events);
567
568 /* Mark the poll entry to ignore it by the kernel. */

--- 141 unchanged lines hidden ---
561 fd, events, ev->read, ev->write);
562
563 if (nxt_slow_path((events & POLLNVAL) != 0)) {
564 nxt_log(ev->task, NXT_LOG_CRIT,
565 "poll() error fd:%d ev:%04Xd rev:%04uXi",
566 fd, pfd->events, events);
567
568 /* Mark the poll entry to ignore it by the kernel. */

--- 141 unchanged lines hidden ---