diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-19 15:54:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-05 13:58:32 +0100 |
commit | d7afd945b5aad5b262a3de97614f486d63d94612 (patch) | |
tree | 43ffeba1b997d2b9e99dab4b5ece7b9ae5b54ce2 /src/systemd | |
parent | sd-bus: add new sd_bus_set_connected_signal() API (diff) | |
download | systemd-d7afd945b5aad5b262a3de97614f486d63d94612.tar.gz systemd-d7afd945b5aad5b262a3de97614f486d63d94612.tar.bz2 systemd-d7afd945b5aad5b262a3de97614f486d63d94612.zip |
networkd,resolved: make use of watch_bind feature to connect to the bus
The changes both networkd and resolved to make use of the watch_bind
feature of sd-bus to connect to the system bus. This way, both daemons
can be started during early boot, and automatically and instantly
connect to the system bus as it becomes available.
This replaces prior code that used a time-based retry logic to connect
to the bus.
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 76bd5eff9..df21b3f30 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -152,6 +152,8 @@ int sd_bus_set_exit_on_disconnect(sd_bus *bus, int b); int sd_bus_get_exit_on_disconnect(sd_bus *bus); int sd_bus_set_watch_bind(sd_bus *bus, int b); int sd_bus_get_watch_bind(sd_bus *bus); +int sd_bus_set_connected_signal(sd_bus *bus, int b); +int sd_bus_get_connected_signal(sd_bus *bus); int sd_bus_start(sd_bus *bus); |