inotify and recursion

Hugo Florentino hugo at acdam.cu
Fri Dec 27 08:16:16 PST 2013


On Fri, 27 Dec 2013 12:56:25 +0000, Gary Willoughby wrote:
> On Friday, 27 December 2013 at 03:39:58 UTC, Hugo Florentino wrote:
>> BTW, it it a requirement to use malloc, and if so, when would I need 
>> to free the memory allocated by it?
>
> I use a static ubyte array.
>
> I've been using inotify quite a bit and found it to be very good but
> there are a few things to keep in mind though. First it can block
> further program execution when watching files. To avoid this use the
> select function in 'core.sys.posix.sys.select'.

Thanks. Have you ever tried using epoll?
I have read that for asynchronous things it works much better than 
select.



More information about the Digitalmars-d-learn mailing list