summaryrefslogtreecommitdiff
path: root/src/ninep/events.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 02:21:57 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit90f5c414a90afec978c8c0add58fd2a7e29acbaa (patch)
tree21a73a5ec603705cf789d39da73cceea425d9420 /src/ninep/events.zig
parenteece0fbe709142f6731b7dd2e84009c3a18a3806 (diff)
downloadpardes-90f5c414a90afec978c8c0add58fd2a7e29acbaa.tar.gz
pardes-90f5c414a90afec978c8c0add58fd2a7e29acbaa.zip
A read on a closed pane's event ends ENOENT, and the pane cap is ENOSPC
9ns reads an error's words, not its errno: "window shut down" came out as EIO where every other file of a gone pane gives ENOENT, and "no pane slots" as EIO. The event and pty/data reads a pane closed under now say "no such pane: its window shut" (ENOENT), and the cap says "no space for a pane: 64 max" (ENOSPC; 9ns has no word for ENFILE). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/events.zig')
-rw-r--r--src/ninep/events.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/events.zig b/src/ninep/events.zig
index 61aadae2..c54d8454 100644
--- a/src/ninep/events.zig
+++ b/src/ninep/events.zig
@@ -765,7 +765,7 @@ test "a pane deleted while its event file is open leaves no suppression behind"
try testing.expectEqual(@as(u16, 0), p.fs.listeners);
// The reader's next read hears what acme says of a window gone under it.
const shut = call(p, .{ .tag = 19, .op = .read, .node = event, .handle = a.reply.handle, .size = 64 });
- try testing.expectEqual(E.IO, shut.errno());
+ try testing.expectEqual(E.NOENT, shut.errno());
try testing.expectEqualStrings(tree.e_shut_down, shut.reply.ename);
_ = call(p, .{ .tag = 20, .op = .release, .node = event, .handle = a.reply.handle });