From: Willy Tarreau Date: Mon, 9 Apr 2007 18:38:57 +0000 (+0200) Subject: [MINOR] kqueue: use fd_clo() to close the fd X-Git-Tag: v1.3.9~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40562cb00c43a81e64e84f848dc22986225c7c30;p=thirdparty%2Fhaproxy.git [MINOR] kqueue: use fd_clo() to close the fd fd_clo() does not call kevent() which is not needed during a close(). This one will be faster. --- diff --git a/src/ev_kqueue.c b/src/ev_kqueue.c index 3654994ce1..44afefe105 100644 --- a/src/ev_kqueue.c +++ b/src/ev_kqueue.c @@ -244,7 +244,8 @@ int kqueue_register(struct poller *p) p->is_set = __fd_is_set; p->cond_s = p->set = __fd_set; p->cond_c = p->clr = __fd_clr; - p->clo = p->rem = __fd_rem; + p->rem = __fd_rem; + p->clo = __fd_clo; return 1; }