Commit f3bb5ed
committed
make unwatching when we hit "too many open files" deterministic
Also clarify in the log message that it's the number of directories watched,
not number of files watched. We don't actually know the number of files watched
since we only add directories to the watcher. On kqueue (macOS) that translates
to one file descriptor used per directory and one file decriptor used per file,
while on inotify (Linux) only needs one file descriptor per directory
(https://news.ycombinator.com/item?id=9063910).1 parent d98ecbe commit f3bb5ed
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| 661 | + | |
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
663 | 665 | | |
664 | 666 | | |
665 | 667 | | |
666 | 668 | | |
667 | | - | |
| 669 | + | |
668 | 670 | | |
669 | 671 | | |
670 | 672 | | |
| |||
685 | 687 | | |
686 | 688 | | |
687 | 689 | | |
| 690 | + | |
688 | 691 | | |
689 | 692 | | |
690 | 693 | | |
691 | 694 | | |
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
695 | | - | |
| 698 | + | |
696 | 699 | | |
697 | 700 | | |
698 | 701 | | |
| |||
0 commit comments