* Warn ONCE that the Linux inotify watch budget is exhausted (ENOSPC), and * stop adding new watches for the rest of this session — every further * `inotify_add_watch` would fail too, so walking the rest of the tree is * waste. Unlike degrade this is NON-fatal: the watches already
(context: Record<string, unknown> = {})
| 611 | * The message names the kernel knob to raise (`fs.inotify.max_user_watches`). |
| 612 | */ |
| 613 | private warnInotifyLimit(context: Record<string, unknown> = {}): void { |
| 614 | if (this.inotifyLimitWarned) return; |
| 615 | this.inotifyLimitWarned = true; |
| 616 | logWarn(INOTIFY_LIMIT_REASON, { watchedDirs: this.dirWatchers.size, ...context }); |
| 617 | } |
| 618 | |
| 619 | /** |
| 620 | * Whether live watching has degraded permanently (until the next start()). |