So to make the question simple , I used a libevent to mange 100th of file handles , where I write a data into all of them , now Iwhen I tried to use regular files ( not a fifo like file) and every time I call event_set for read it gives me back an error -1 on the epoll_ctl call ( now this works fine with the FIFO )
Now the questions, libevent uses a epoll_wait, can I use epoll for the regular files or Linux kernel does not allow ?
Thanks you,
--Aleks
aleks sheynkman <[EMAIL PROTECTED]> wrote:
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 NO PERM errro back, so I was wondering if anybody succeeded before ( google not in much help :()
Alex Stapleton <[EMAIL PROTECTED]> wrote:
On 28 Nov 2005, at 12:21, Richard Nyberg wrote:
> At Mon, 28 Nov 2005 01:12:16 -0800 (PST),
> aleks sheynkman wrote:
>> Hi, all!
>> Does any know if I can use a libevent to manage regular file
>> desriptors (not a fifo).
>
> No. You can always read or write to regular files, so it doesn't
> really
Er not true really, but anyway; what you appear to be looking for
aleks is the dnotify, or inotify API if your kernel supports it. That
does directory/file events under Linux. I've never used them my self
but Google should reveal more info.
> make much sense. Other events for files that may exist in certain
> operating
> systems are not made available directly by libevent.
>
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Yahoo! Music Unlimited - Access over 1 million songs. Try it free._______________________________________________ Libevent-users mailing list [email protected] http://monkey.org/mailman/listinfo/libevent-users
- Re: [Libevent-users] libevent f... aleks sheynkman
- Re: [Libevent-users] libevent for regula... Hannah Schroeter
- Re: [Libevent-users] libevent for regula... Niels Provos
- Re: [Libevent-users] libevent for regular file d... Mathew Mills
- Re: [Libevent-users] libevent for regular fi... David Phillips
- Re: [Libevent-users] libevent for regular file descriptor... christopher baus
- Re: [Libevent-users] libevent for regular file descr... Hannah Schroeter
- Re: [Libevent-users] libevent for regular file d... christopher baus
- Re: [Libevent-users] libevent for regular fi... Hannah Schroeter
- Re: [Libevent-users] libevent for regula... christopher baus
- Re: [Libevent-users] libevent for regular file descriptor... aleks sheynkman
- Re: [Libevent-users] libevent for regular file descr... Hannah Schroeter
Reply via email to
