From 06a1193b4d131df6abc64b69f8cb397cdbe51fad Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Fri, 30 Aug 2024 01:12:53 +0200 Subject: [PATCH] Make it so the test harness closes fds up to 100 (#1268) --- libc/testlib/testmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/testlib/testmain.c b/libc/testlib/testmain.c index 083a2daa2..55d34f80f 100644 --- a/libc/testlib/testmain.c +++ b/libc/testlib/testmain.c @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) { __log_level = kLogInfo; GetOpts(argc, argv); - for (fd = 3; fd < 10; ++fd) { + for (fd = 3; fd < 100; ++fd) { close(fd); }