Re: [PATCH 2/2] [connman] inotify: refcount struct connman_inotify

2014-11-24 Thread Patrik Flykt
On Fri, 2014-11-21 at 13:07 +0200, Hannu Mallat wrote: > When processing inotify events, callbacks may unregister which can > result in freeing the related connman_inotify struct. However that > struct is referenced in the loop which processes the events read in. > > Implement reference counting t

[PATCH 2/2] [connman] inotify: refcount struct connman_inotify

2014-11-21 Thread Hannu Mallat
When processing inotify events, callbacks may unregister which can result in freeing the related connman_inotify struct. However that struct is referenced in the loop which processes the events read in. Implement reference counting to make sure the structure is available while events are being pro