Re: [libvirt] [PATCH 2/4] daemon: call free callbacks synchronously in event loop impl

2016-09-22 Thread Nikolay Shirokovskiy
On 22.09.2016 11:44, Daniel P. Berrange wrote: > On Thu, Sep 22, 2016 at 11:38:50AM +0300, Nikolay Shirokovskiy wrote: >> Default event loop impl delays deleting registered handles and >> timeouts so that deleting is safe from event handlers. But >> this means deletions after event loop is

Re: [libvirt] [PATCH 2/4] daemon: call free callbacks synchronously in event loop impl

2016-09-22 Thread Daniel P. Berrange
On Thu, Sep 22, 2016 at 11:38:50AM +0300, Nikolay Shirokovskiy wrote: > Default event loop impl delays deleting registered handles and > timeouts so that deleting is safe from event handlers. But > this means deletions after event loop is finished will never > occur and particularly assosiated

[libvirt] [PATCH 2/4] daemon: call free callbacks synchronously in event loop impl

2016-09-22 Thread Nikolay Shirokovskiy
Default event loop impl delays deleting registered handles and timeouts so that deleting is safe from event handlers. But this means deletions after event loop is finished will never occur and particularly assosiated callback objects will not be freed. For this reason network clients that exist at