diff options
| author | user <user@clank> | 2026-08-24 10:01:33 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-24 10:01:33 +0200 |
| commit | 38a7506c3013fc6197cfbe657678a50ceb992bff (patch) | |
| tree | 6af66f2b19887b2364b2a036c814315e09b23d00 /include | |
| parent | make vendor: no xcframework, a CLT-only xcodebuild is a stub (diff) | |
| download | slosh-38a7506c3013fc6197cfbe657678a50ceb992bff.tar.gz slosh-38a7506c3013fc6197cfbe657678a50ceb992bff.tar.xz slosh-38a7506c3013fc6197cfbe657678a50ceb992bff.zip | |
slosh: the config watcher speaks kqueue on macOS
There is no inotify to port to, so the watcher grows a second native
backend: kqueue's EVFILT_VNODE, feeding the same pollable fd that
server_run() already watches. Vnode events are per-inode, so each
config file is watched twice -- via its directory (catching the
temp-file-then-rename most editors do, and files appearing for the
first time) and via the file itself (catching in-place rewrites).
Either event triggers the same debounced re-read as on Linux, which
re-registers the watches and so survives the rename swapping the
inode out from under us.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
