fix: re-arm fd_watcher in handle_read_ready
This commit is contained in:
parent
5d5e1f77e8
commit
86b50b1329
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue