Closed g-pichler closed 1 month ago
Nice, thank you @g-pichler !
Would you mond adding a line in the changelog too, please?
That's OK on my side. LMK when you are ready for the merge.
Out of curiosity, any pros/cons to prefer epoll()
?
I have to be honest, I did not look into epoll()
after my issue was resolved using poll()
. I'm also not familiar with polling and did not want to invest more time, considering I had a workable solution and the man page was pointing at poll()
as a suitable replacement.
From my side, you can merge at your convenience. I think a MacOS unit-test keeps failing from time to time, but I believe this might be a timing issue in the CI/CD.
Details:
As stated in the
select()
man page:This can lead to
ValueError: filedescriptor out of range in select()
when using watchdog. Following the advice of theselect()
man page, we useselect.poll()
instead, if available. The call toselect()
used as a fallback.Fixes #1079.