diff options
Diffstat (limited to 'src/file_watch.zig')
| -rw-r--r-- | src/file_watch.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_watch.zig b/src/file_watch.zig index f640fa5f..89d0fdaf 100644 --- a/src/file_watch.zig +++ b/src/file_watch.zig @@ -100,7 +100,7 @@ const wake_ident: usize = std.math.maxInt(usize); /// `polled` is the only flag that survives the port. On linux it adds /// IN_NONBLOCK, because a host that finds this descriptor ready in its own /// `poll(2)` must be able to stop draining it, while a -/// host that parks a thread in `wait` (tty.zig, gui.zig) wants the blocking +/// host that parks a thread in `wait` (tui.zig, gui.zig) wants the blocking /// read. On macos neither host needs either flag: a kqueue is not inherited /// across `fork(2)`, so there is no CLOEXEC to ask for, and whether a wait /// blocks is the timeout argument to `kevent(2)` rather than a property of the @@ -143,11 +143,11 @@ pub fn init(polled: bool) c_int { /// /// macos only, because it exists for the one thing a kqueue cannot do the way /// an inotify descriptor can — be read. The linux hosts keep reading theirs -/// (tty.zig through `std.Io.File`, so teardown's `cancel` interrupts it), and +/// (tui.zig through `std.Io.File`, so teardown's `cancel` interrupts it), and /// this is the shape that replaces that where there is nothing to read. /// /// Deliberately does NOT report WHAT changed, for the reason the watcher -/// threads in tty.zig and gui.zig already give: the loop re-reads every marked +/// threads in tui.zig and gui.zig already give: the loop re-reads every marked /// pane anyway. pub fn wait(fd: c_int) bool { if (comptime builtin.os.tag != .macos) return false; |
