Re: [Libevent-users] resuming libevent2 after closing all file descriptors

2010-05-06 Thread Nick Mathewson
2010/5/3 Péter Szabó : > Hi, > > I'm doing the following with libevent 2.0.4 on Linux: > >  strcut event_base *base = event_init() >  ...  /* not registering any events */ >  for (int fd = 3; fd < 256; ++fd) close(fd); >  event_reinit(base); >  ... > This eventually reports the following warning: >

[Libevent-users] resuming libevent2 after closing all file descriptors

2010-05-03 Thread Péter Szabó
Hi, I'm doing the following with libevent 2.0.4 on Linux: strcut event_base *base = event_init() ... /* not registering any events */ for (int fd = 3; fd < 256; ++fd) close(fd); event_reinit(base); ... This eventually reports the following warning: [warn] Epoll ADD on fd 7 failed.