[systemd-devel] How to unlock a blocking sd_bus_wait() call

Lennart Poettering lennart at poettering.net
Fri Jan 8 04:50:36 PST 2016


On Thu, 07.01.16 21:15, Iñigo Martínez (inigomartinez at gmail.com) wrote:

> What about the second solution ?
> 
> Do you think that it is a good idea a thread using sd_bus_wait that
> can be cancelled and cleaned later ?

No, we do not suport thread cancellation and have no intention to do
so. Quite frankly I believe that thread cancellation is an inherently
flawed concept.

sd-bus is generally threads-aware, but not thread-safe. i.e. we have
concepts such as having a per-thread default bus, but we will not do
locking and we will not do cancellation.

Sorry,

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list