[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [or-cvs] when event_add or event_del fail, tell us why.



On Mon, Mar 13, 2006 at 06:48:42PM -0500, Nick Mathewson wrote:
> Sadly, this approach isn't 100% reliable.  event_add and event_del can
> fail for reasons that don't set errno.  I don't think this is a thing
> we need to fix, but it's a thing we should keep in mind.

The event man page says:

|Upon successful completion event_add() and event_del() return 0. Other-
|wise, -1 is returned and the global variable errno is set to indicate the
|error.

So if you know of places where it doesn't get set, this is a bug in
libevent, and we should fix it (in our copious free time).

--Roger