[Libevent-users] Infinite loop in event_process_active()

2009-09-17 Thread nicolas dumont
Hi, I'm using events in 1.4.12-stable. Sometimes, my daemon, which uses event_base_loop() goes in an infinite loop ( verbose traces below ). This infinite loop is inside function event_process_active() which calls event_del() with ev_flags=0x80 ( =EVLIST_INIT) This flags is not managed by

Re: [Libevent-users] Infinite loop in event_process_active()

2009-09-17 Thread Nick Mathewson
On Thu, Sep 17, 2009 at 02:56:59PM +0200, nicolas dumont wrote: Hi, I'm using events in 1.4.12-stable. [...] Finnaly, to prevent to go in the infinite loop , do I have to run event_del(ev) each time before using event_set(ev) ? This is exactly so. You can't call event_set or event_assign