is there a limit on the number of files one can simultaneously
monitor with the kevent mechanism? Basically, I want to monitor if a
file has changed, for potentially hundreds or even thousands of
files. The code I have (based on Michael McCracken's stakeout) seems
to be able to monitor no more than 251 files (weird number, I don't
have a clue why). Is there a limitation? Is it even sensible to
monitor so many files simultaneously using the kevent mechanism?
For your reference, my code looks somewhat like this: