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

Re: [Libevent-users] epoll erros



On Fri, Oct 22, 2010 at 2:12 PM, Gilad Benjamini
<gilad@xxxxxxxxxxxxxxxxx> wrote:
>> -----Original Message-----
>> From: owner-libevent-users@xxxxxxxxxxxxx [mailto:owner-libevent-
>> users@xxxxxxxxxxxxx] On Behalf Of Nick Mathewson
>> Sent: Friday, October 22, 2010 10:39 AM
>> To: libevent-users@xxxxxxxxxxxxx
>> Subject: Re: [Libevent-users] epoll erros
>>
> ...
>> It won't catch attempts to manually reassign the event's ev_events
>> while the event is added.  I sure hope nobody is doing that.  Don't
>> touch struct event's fields by hand.
>
> Following this comment I discovered that my code does touch ev_events by
> hand. Fixing my code with the patch below did not make the problem go away

D'oh. I should have been more specific.  It's *modifying* ev_events by
hand that can get you in serious trouble.  Inspecting them by hand is
just an obstacle to ABI forward-compatibility.

It must be something else...

yrs,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.