Skip to content

libsystemd: Should each thread open its own dbus connection (sd_bus*)? #10784

@FabianKnapp

Description

@FabianKnapp

I have an executable that opens a dbus connection with sd_bus_open_system at init time and cleanup and close this connection only on exit.
This connection is used in multiple threads (in a thread safe manner) and im wondering if this is suitable since sd_bus_add_match seems to time out if the sd_bus* object is created from another thread than the call to sd_bus_add_match happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions