| ... | @@ -752,6 +752,7 @@ pub const Dir = struct { | ... | @@ -752,6 +752,7 @@ pub const Dir = struct { |
| 752 | try std.event.Loop.instance.?.openatZ(self.fd, sub_path, os_flags, 0) | 752 | try std.event.Loop.instance.?.openatZ(self.fd, sub_path, os_flags, 0) |
| 753 | else | 753 | else |
| 754 | try os.openatZ(self.fd, sub_path, os_flags, 0); | 754 | try os.openatZ(self.fd, sub_path, os_flags, 0); |
| | 755 | errdefer os.close(fd); |
| 755 | | 756 | |
| 756 | if (!has_flock_open_flags and flags.lock != .None) { | 757 | if (!has_flock_open_flags and flags.lock != .None) { |
| 757 | // TODO: integrate async I/O | 758 | // TODO: integrate async I/O |