> Thank you, Its very interesting , because I'm using 2.6.5 kernel which > does supports epoll , but every time I tried call a epoll_ctl with an > ADD operation on the regular file , I get back a NOPERM errro back, so I > was wondering if anybody succeeded before ( google not in much help :()
Linux doesn't support non-blocking I/O on files. If you don't require high throughput to disk your best bet is to use worker threads. This is basically how squid handle's its disk cache. If you are doing light disk writes your application might be able to get away with blocking files because writes to the disk cache are basically non-blocking. _______________________________________________ Libevent-users mailing list [email protected] http://monkey.org/mailman/listinfo/libevent-users
