diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 02:21:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 90f5c414a90afec978c8c0add58fd2a7e29acbaa (patch) | |
| tree | 21a73a5ec603705cf789d39da73cceea425d9420 /src/Messages.zig | |
| parent | eece0fbe709142f6731b7dd2e84009c3a18a3806 (diff) | |
| download | pardes-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/Messages.zig')
| -rw-r--r-- | src/Messages.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Messages.zig b/src/Messages.zig index 7d284e6b..b197e715 100644 --- a/src/Messages.zig +++ b/src/Messages.zig @@ -446,7 +446,8 @@ pub fn messageLog(m: *const Messages, i: usize) ?*const LoggedMessage { /// `<operation>: <the error in words>`: FileNotFound reads "file not found". /// What a route that would open a pane says when every slot is taken. -pub const no_pane_slots = "no pane slots: {d} max"; +/// "no space": 9ns's word for ENOSPC (it has none for ENFILE). +pub const no_pane_slots = "no space for a pane: {d} max"; pub fn reportError(p: *Pardes, id: usize, operation: []const u8, err: anyerror) void { var buf: [256]u8 = undefined; |
