chiark / gitweb /
sd-bus: ensure we don't dispatch track objects while we are adding names to them
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Aug 2016 14:09:15 +0000 (16:09 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:52 +0000 (08:50 +0200)
In order to add a name to a bus tracking object we need to do some bus
operations: we need to check if the name already exists and add match for it.
Both are synchronous bus calls. While processing those we need to make sure
that the tracking object is not dispatched yet, as it might still be empty, but
is not going to be empty for very long.

hence, block dispatching by removing the object from the dispatch queue while
adding it, and readding it on error.


No differences found