Opened 11 years ago
Closed 8 years ago
#4899 closed Enhancement (duplicate)
BSD's should have kqueue equiv. to inotify
Reported by: | gvdl | Owned by: | gvdl |
---|---|---|---|
Priority: | Normal | Milestone: | None Set |
Component: | Daemon | Version: | 2.51 |
Severity: | Normal | Keywords: | patch-needed |
Cc: |
Description
On code inspection it seems that any OS that doesn't support notify for watching directories falls back to polling the directory for changes. It should be possible to use *BSD's kqueue infrastructure as a rough equivalent to inotify. Though not really, the OSX's implementation can tell you if a directory has changed but not which file within it, still at least we can at least stop polling.
Jordan I'm thinking of adding a lightweight thread to block on kqueue, then signal over to the main thread using a 'user' libevent. If it works it may be worth while investigating a similar implementation for inotify rather than the current block for one second solution.
Change History (6)
comment:1 Changed 11 years ago by jordan
- Keywords patch-needed added
comment:2 Changed 11 years ago by gvdl
- Status changed from new to assigned
comment:3 Changed 11 years ago by jordan
comment:4 Changed 10 years ago by jordan
gvdl, ping
comment:5 Changed 8 years ago by mike.dld
I think this could be closed in favour of work in progress patch in #5663.
comment:6 Changed 8 years ago by mike.dld
- Resolution set to duplicate
- Status changed from assigned to closed
gvdl, any news on this?