srctree

Andrew Kelley parent 3d1b8260 ee9523d6
raise file descriptor limit for scanning

server/main.zig added: 5, removed: 1, total 4
@@ -71,6 +71,10 @@ pub fn main() anyerror!noreturn {
}
}
 
// It's handy when scanning to have open many file descriptors, especially
// if the system has many CPU cores, causing the thread pool to be large.
std.process.raiseFileDescriptorLimit();
 
const install_directory: Directory = opt_install_directory orelse b: {
const path_name = std.fs.selfExeDirPathAlloc(arena) catch |err|
fatal("unable to determine installation directory: {s}", .{@errorName(err)});