Usually on linux when we wish to use epoll, we first create a epfd, and then register fd and events to it. Above is a common example I found from internet. It works, but problem is: ev.data.fd=fd here I already have my “fd” assigned to ev structure. epoll_ctl still requires the 3rd parameter of this fd. While the 4th parameter
Tag: events
questions about implementing pyinotify instance to monitor directory
I have some basic questions about pyinotify that I can’t seem to find the answers to elsewhere. 1) For a continuous directory monitor (and event processor) is it necessary to have a while( True ) loop or is the continuous event ‘loop’ handled by the notify watch and ended when I remove the watch? 2) What happens if files are