[systemd-devel] [systemd-level]: How to share the same DBUS between the main process and the new thread?

www ouyangxuan10 at 163.com
Thu Apr 23 13:31:21 UTC 2020


Dear all,


I write a new service and the service need wait the signal. At the same time, I need to start a new thread to get information. If the two share the same DBUS, the following problems will arise:
terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
what():  sd_bus_call: org.freedesktop.DBus.Error.Timeout: Connection timed out


Is there any good way to solve this problem?
(I don't want to create a new DBUS in a new thread.)


thanks,
Byron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200423/439562a4/attachment.htm>


More information about the systemd-devel mailing list