mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
BUG/MINOR: kqueue/threads: Don't forget to close kqueue_fd[tid] on each thread
in deinit_kqueue_per_thread, kqueue_fd[tid] must be closed, except for the main
thread (the first one, tid==0).
This patch must be backported in 1.8 with commit 7a2364d4
.
This commit is contained in:
parent
23d86d157e
commit
13b007d583
@ -184,6 +184,9 @@ static int init_kqueue_per_thread()
|
|||||||
|
|
||||||
static void deinit_kqueue_per_thread()
|
static void deinit_kqueue_per_thread()
|
||||||
{
|
{
|
||||||
|
if (tid)
|
||||||
|
close(kqueue_fd[tid]);
|
||||||
|
|
||||||
free(kev);
|
free(kev);
|
||||||
kev = NULL;
|
kev = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user