On 07/06/2012 06:24 PM, Yunkai Zhang wrote:
>> Is a double unregister-event fine?  It seems like we don't protect
>> > against that here.
> I think it's no harm, unregister_event will call lookup_event() to check it.
> 

Better assign fd = -1 in unregister_event() and then we can check it
before unregister it. lookup_event() will printf a error message which
will bewilder people who look at the log.

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to