3 ms·
That only looks simple because we don't know what problem was being solved. Is it really right to not process any files just because one of them just disappear
by xorcist 5y ago
That only looks simple because we don't know what problem was being solved.
Is it really right to not process any files just because one of them just disappeared?
In general, situations like this suffer from race conditions and time-of-check/time-of-use problems.
- Izkata 5y ago> Is it really right to not process any files just because one of them just disappeared? No idea what you mean here, the glob can expand to one or many. > In general, situations like this suffer from race conditions and time-of-check/time-of-use problems. I mean, that's a problem in every version presented so far, one that I don't think can be fixed externally without something extra like hardlinking to a new directory, because "the_tool" apparently can't handle missing files and they can go missing when "the_tool" starts up. That's why I didn't even bother.