authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:12:10 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:12:10 -08:00
log3a21364b62b435d8e8e722a2b56dd13b8c91113d
tree5ce54c03f73444c9b3a3db514c06eea546843600
parent13c63000cecd9a2d66efa68e62d02dbc3fbae3fd

document why these ignore the error


2 files changed, 2 insertions(+), 0 deletions(-)

Dir.zig+1
......@@ -10,6 +10,7 @@ const os = builtin.target.os.tag;
1010
1111fd: nfs.Handle,
1212
13// Resource allocation may fail; resource deallocation must succeed.
1314pub fn close(self: Dir) void {
1415 if (os == .linux)
1516 sys_linux.close(@intFromEnum(self.fd)) catch {};
File.zig+1
......@@ -12,6 +12,7 @@ const os = builtin.target.os.tag;
1212
1313fd: nfs.Handle,
1414
15// Resource allocation may fail; resource deallocation must succeed.
1516pub fn close(self: File) void {
1617 if (os == .linux)
1718 sys_linux.close(@intFromEnum(self.fd)) catch {};