Skip to content

Call watchDir only once - #295

Merged
maralorn merged 1 commit into
maralorn:mainfrom
ryndubei:watch-store-dir-once
Jul 14, 2026
Merged

Call watchDir only once#295
maralorn merged 1 commit into
maralorn:mainfrom
ryndubei:watch-store-dir-once

Conversation

@ryndubei

Copy link
Copy Markdown
Contributor

Since watchDir is only ever called on the Nix store, we only need to call it once. This might fix the "runHandler: couldn't find handler" errors (#276), if they are caused by having duplicate inotify watch descriptors.

As an extra thing: previously, subscribing to multiple store paths at the same time would lead to all of the watches terminating prematurely as soon as one store path showed up, since every watch had the same watch descriptor. This may be why inotify was sometimes unreliable.

@maralorn
maralorn merged commit d55fdc3 into maralorn:main Jul 14, 2026
1 check passed
@maralorn maralorn linked an issue Jul 14, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runHandler …

2 participants