[DTrace-devel] [PATCH] test/triggers: ensure bogus-ioctl has a reasonable fd limit

Nick Alcock nick.alcock at oracle.com
Wed Jul 31 15:12:58 UTC 2024


On 31 Jul 2024, Kris Van Hees via DTrace-devel spake thusly:

> The bogus-ioctl trigger has a loop to close all possible fds, and it
> was limit by rlim_max.  On some systems, that was such a high limit
> that the loop was taking too long, causing tests to time out.  Set
> the limit to 1024, so that the loop will end in reasonable time.

Boggle. I guess this has grown a lot with time :)

> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>

(in practice, probably closing the first three would work almost all the
time. I can't imagine any shell weird enough to leave a thousand fds
open on entry!)

-- 
NULL && (void)



More information about the DTrace-devel mailing list