@@ -37,7 +37,6 @@ static void * ngx_ff_channel_create_conf(ngx_cycle_t *cycle);
37
37
static char * ngx_ff_channel_init_conf (ngx_cycle_t * cycle ,
38
38
void * conf );
39
39
static ngx_int_t ngx_ff_epoll_init (ngx_cycle_t * cycle );
40
- static void ngx_ff_epoll_done (ngx_cycle_t * cycle );
41
40
static ngx_int_t ngx_ff_epoll_add_event (ngx_event_t * ev ,
42
41
ngx_int_t event , ngx_uint_t flags );
43
42
static ngx_int_t ngx_ff_epoll_del_event (ngx_event_t * ev ,
@@ -95,7 +94,7 @@ ngx_module_t ngx_ff_channel_module = {
95
94
ngx_ff_epoll_init , /* init process */
96
95
NULL , /* init thread */
97
96
NULL , /* exit thread */
98
- ngx_ff_epoll_done , /* exit process */
97
+ NULL , /* exit process */
99
98
NULL , /* exit master */
100
99
NGX_MODULE_V1_PADDING
101
100
};
@@ -148,29 +147,6 @@ ngx_ff_epoll_init(ngx_cycle_t *cycle)
148
147
return NGX_OK ;
149
148
}
150
149
151
- static void
152
- ngx_ff_epoll_done (ngx_cycle_t * cycle )
153
- {
154
- if (ep != -1 ) {
155
- if (close (ep ) == -1 ) {
156
- ngx_log_error (NGX_LOG_ALERT , cycle -> log , ngx_errno ,
157
- "epoll close() failed" );
158
- }
159
- ep = -1 ;
160
- }
161
-
162
- if (event_list ) {
163
- ngx_free (event_list );
164
- event_list = NULL ;
165
- }
166
-
167
- nevents = 0 ;
168
-
169
- if (channel_connection ) {
170
- ngx_ff_delete_connection ();
171
- }
172
- }
173
-
174
150
static ngx_int_t
175
151
ngx_ff_epoll_add_event (ngx_event_t * ev , ngx_int_t event ,
176
152
ngx_uint_t flags )
0 commit comments