unit.cpp (1767:582a004c73f8) unit.cpp (1980:43553aa72111)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "unit.h"
7
8#include <unistd.h>

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

514 data->poll.data = data;
515 }
516
517 return NXT_UNIT_OK;
518}
519
520
521void
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "unit.h"
7
8#include <unistd.h>

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

514 data->poll.data = data;
515 }
516
517 return NXT_UNIT_OK;
518}
519
520
521void
522Unit::remove_port(nxt_unit_t *unit, nxt_unit_port_t *port)
522Unit::remove_port(nxt_unit_t *unit, nxt_unit_ctx_t *ctx, nxt_unit_port_t *port)
523{
524 port_data_t *data;
525
523{
524 port_data_t *data;
525
526 if (port->data != NULL) {
526 if (port->data != NULL && ctx != NULL) {
527 data = (port_data_t *) port->data;
528
529 data->stop();
530 }
531}
532
533
534void

--- 627 unchanged lines hidden ---
527 data = (port_data_t *) port->data;
528
529 data->stop();
530 }
531}
532
533
534void

--- 627 unchanged lines hidden ---