Bug#1073046: FTBFS with huge file limit due to testsuite timeouts
Aurelien's analysis in bz 1073046 is correct.
cups testsuite fails because of a huge MaxFDs value:
epoll_pwait(3, NULL, 1073741816, 1000, NULL, 8) = -1 EINVAL (Invalid argument)
The patch (=Hack !!) below fixes it for me.
Tested on hppa platform.
Helge
diff -up ./scheduler/main.c.org ./scheduler/main.c
--- ./scheduler/main.c.org 2024-12-29 00:17:46.296953737 +0000
+++ ./scheduler/main.c 2024-12-29 00:20:04.269028246 +0000
@@ -536,6 +536,10 @@ main(int argc, /* I - Number of comm
#endif /* RLIM_INFINITY */
MaxFDs = limit.rlim_max;
+ /* workaround due systemd: See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073046 */
+ if (MaxFDs > 1048576)
+ MaxFDs = 1048576;
+
limit.rlim_cur = (rlim_t)MaxFDs;
setrlimit(RLIMIT_NOFILE, &limit);
Reply to: