From 128c654aac423940c54f1aa7aaeaa5e8692c975f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 11 May 2026 15:27:51 +0200 Subject: [PATCH] BUG/MINOR: cfgcond: make KQUEUE check for GTUNE_USE_KQUEUE not GTUNE_USE_EPOLL In cfg_eval_cond_enabled(), the "KQUEUE" option incorrectly checks GTUNE_USE_EPOLL instead of GTUNE_USE_KQUEUE. This is a copy-paste bug from the preceding EPOLL case. It can be backported though it's harmless. --- src/cfgcond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgcond.c b/src/cfgcond.c index 58659a49f..f012e6040 100644 --- a/src/cfgcond.c +++ b/src/cfgcond.c @@ -190,7 +190,7 @@ static int cfg_eval_cond_enabled(const char *str) else if (strcmp(str, "EPOLL") == 0) return !!(global.tune.options & GTUNE_USE_EPOLL); else if (strcmp(str, "KQUEUE") == 0) - return !!(global.tune.options & GTUNE_USE_EPOLL); + return !!(global.tune.options & GTUNE_USE_KQUEUE); else if (strcmp(str, "EVPORTS") == 0) return !!(global.tune.options & GTUNE_USE_EVPORTS); else if (strcmp(str, "SPLICE") == 0) -- 2.47.3