Hello,
I have an isFile test
and I loop until isFile is false.
my problem is that it triggers a “ProcessFdQuotaExceeded” error
I’ve tried setting a sleep but it has no effect
it’s as if the number of loops wasn’t infinite
Hello,
I have an isFile test
and I loop until isFile is false.
my problem is that it triggers a “ProcessFdQuotaExceeded” error
I’ve tried setting a sleep but it has no effect
it’s as if the number of loops wasn’t infinite
you have to many files open.
you might be able to raise the limmit, otherwise close them
fn isFile(name: []const u8 ) bool {
const xDIR = std.fs.cwd().openDir(dirfile,.{}) catch unreachable;
xDIR.access(name, .{.mode = .read_write}) catch |e| switch (e) {
error.FileNotFound => return false,
else => {},
};
return true;
}
i found my error
i had left the default access mode ( readonly)
if ( !isFile(COM.fileTAG) ) return errmap.violation_integrite_fileTAG_not_found;
pffff complicated debug to find this error ??? “ProcessFdQuotaExceeded”
by setting my program “smal”, it showed me the real error
Génial les fonctions
std. process.Child.spawn ou spawnAndWait