On 6/24/21 8:50 AM, Paul Eggert wrote: > inotify_init can return 1025 even if called first thing, so we also need > to dup2 the result of early inotify_init down to 3 (or whatever), or at > least to check that it's less than 1024. Choosing 3 is a tricky > business, since it's not clear what fds the C library actually needs. When looking into this I decided it was cleaner to fix coreutils by using 'poll' instead of 'select', as Kamil suggested. I installed the attached patches to do that. The last patch fixes the bug. Thanks for reporting the problem.