On Thu, Sep 14, 2023 at 06:01:20PM +0200, Thomas Weißschuh wrote:
We can automatically detect if pselect6 is needed or not from the kernel headers. This removes the need to manually specify it.
Signed-off-by: Thomas Weißschuh linux@weissschuh.net
That's indeed cleaner, I can't find the reason why we didn't do it like this initially, I suspect that maybe we were having __NR_select defined but not usable, I don't know. I've found it first introduced with nolibc commit 28a7178 ("nolibc: fall back to pselect6() on aarch64"), and the test was made before __NR_newselect, so maybe I wanted to be sure not to use pselect6() in case another arch would define it.
Let's do as you propose, it's much cleaner and simpler. If we ever find any breakage at least we'll know how to deal with it so I'm not worried.
Acked-by: Willy Tarreau w@1wt.eu
Thanks! Willy