Re: [Libevent-users] files and libevent

2008-06-16 Thread Chris Brody
On Mon, Jun 16, 2008 at 3:11 PM, Hannah Schroeter <[EMAIL PROTECTED]> wrote: [...] > On most OSes, however, checking for "readable" on plain files always > immediately returns/yields a readable event anyway, so it's of no use > (e.g. select/poll on Unix, I guess the same for epoll/kqueue, ok, > kqu

Re: [Libevent-users] files and libevent

2008-06-16 Thread Hannah Schroeter
Hi! On Sat, Jun 14, 2008 at 02:03:20PM -0400, Nick Mathewson wrote: >On Thu, Jun 12, 2008 at 07:59:45AM -0700, Teunis Peters wrote: >> I've not found any code to work with - but is there any reason that >> libevent would not work with standard files? >> I keep getting permission denied >> more

Re: [Libevent-users] files and libevent

2008-06-14 Thread Nick Mathewson
On Thu, Jun 12, 2008 at 07:59:45AM -0700, Teunis Peters wrote: > I've not found any code to work with - but is there any reason that > libevent would not work with standard files? > > I keep getting permission denied > > more or less: > > fd = open(filename, O_RDONLY) > event_set(&ev, EV_READ |

[Libevent-users] files and libevent

2008-06-12 Thread Teunis Peters
I've not found any code to work with - but is there any reason that libevent would not work with standard files? I keep getting permission denied more or less: fd = open(filename, O_RDONLY) event_set(&ev, EV_READ | EV_PERSIST, rd_callback, rd_data); event_add(&ev, NULL) -> EPERM Or does libev