On Fri, Jul 6, 2012 at 6:47 PM, Liu Yuan <[email protected]> wrote:
> 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

No, this fd need to be closed by destroy_client() when ci->refcnt become zero.

> before unregister it. lookup_event() will printf a error message which
> will bewilder people who look at the log.

Maybe we can remove this error message?

>



-- 
Yunkai Zhang
Work at Taobao
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to