From: Florian Westphal Date: Wed, 25 Feb 2026 11:05:40 +0000 (+0100) Subject: mnl: restore nft monitor to working state X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=de904e22faa2e450d0d4802e1d9bc22013044f93;p=thirdparty%2Fnftables.git mnl: restore nft monitor to working state monitor tests are currently broken: ./run-tests.sh: line 60: 6490 Aborted $nft -nn monitor $monitor_args > $monitor_output *** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated Fixes: 868040f89223 ("configure: Implement --enable-profiling option") Signed-off-by: Florian Westphal --- diff --git a/src/mnl.c b/src/mnl.c index 3f3ef82a..eb6cb12c 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -2410,7 +2410,7 @@ int mnl_nft_event_listener(struct mnl_socket *nf_sock, unsigned int debug_mask, if (ret < 0) return -1; - if (FD_ISSET(sigfd, &readfds)) + if (sigfd >= 0 && FD_ISSET(sigfd, &readfds)) check_signalfd(sigfd); if (FD_ISSET(fd, &readfds)) {