fs: handle recursive watch setup races · nodejs/node@bdb25e9 · GitHub
Skip to content

Commit bdb25e9

Browse files
committed
fs: handle recursive watch setup races
Arm directory watchers before reading entries to close the setup window. Discard stale watcher state when paths disappear so recreated paths can be watched again. On AIX, treat ENODEV as missing only when stat confirms the path is gone. Preserve root throwIfNoEntry behavior and other watch errors. Fixes: #65697 Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
1 parent 24c7c30 commit bdb25e9

3 files changed

Lines changed: 332 additions & 22 deletions

File tree

‎lib/internal/fs/recursive_watch.js‎

Lines changed: 69 additions & 20 deletions

‎test/parallel/parallel.status‎

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)