port.go (1713:f5ba5973a0a3) port.go (1980:43553aa72111)
1/*
2 * Copyright (C) Max Romanov
3 * Copyright (C) NGINX, Inc.
4 */
5
6package unit
7
8/*

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

115 C.nxt_unit_run_shared(ctx);
116 }(ctx)
117 }
118
119 return C.NXT_UNIT_OK
120}
121
122//export nxt_go_remove_port
1/*
2 * Copyright (C) Max Romanov
3 * Copyright (C) NGINX, Inc.
4 */
5
6package unit
7
8/*

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

115 C.nxt_unit_run_shared(ctx);
116 }(ctx)
117 }
118
119 return C.NXT_UNIT_OK
120}
121
122//export nxt_go_remove_port
123func nxt_go_remove_port(unit *C.nxt_unit_t, p *C.nxt_unit_port_t) {
123func nxt_go_remove_port(unit *C.nxt_unit_t, ctx *C.nxt_unit_ctx_t,
124 p *C.nxt_unit_port_t) {
124
125 key := port_key{
126 pid: int(p.id.pid),
127 id: int(p.id.id),
128 }
129
130 port_registry_.Lock()
131 if port_registry_.m != nil {

--- 67 unchanged lines hidden ---
125
126 key := port_key{
127 pid: int(p.id.pid),
128 id: int(p.id.id),
129 }
130
131 port_registry_.Lock()
132 if port_registry_.m != nil {

--- 67 unchanged lines hidden ---