fix: re-arm fd_watcher in handle_read_ready

This commit is contained in:
CJ van den Berg 2026-02-20 21:31:31 +01:00
parent 5d5e1f77e8
commit 86b50b1329
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -132,7 +132,10 @@ const INotifyBackend = struct {
}
}
fn handle_read_ready(self: *@This(), allocator: std.mem.Allocator, parent: tp.pid_ref) (std.posix.ReadError || error{ NoSpaceLeft, OutOfMemory, Exit })!void {
fn handle_read_ready(self: *@This(), allocator: std.mem.Allocator, parent: tp.pid_ref) (std.posix.ReadError || error{ ThespianFileDescriptorWaitReadFailed, NoSpaceLeft, OutOfMemory, Exit })!void {
// re-arm the file_discriptor
try self.fd_watcher.wait_read();
const InotifyEvent = extern struct {
wd: i32,
mask: u32,