chiark / gitweb /
networkd,resolved: make use of watch_bind feature to connect to the bus
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Dec 2017 14:54:30 +0000 (15:54 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:59 +0000 (07:49 +0200)
commitef02e13a94aa70904b62c70236ef82ec0e4f2fec
tree1b21a017390c32b79fac3278e163d4f4d45bd1fa
parent5d9d26d4c87636a611c4bb40c71fec60eaea8a8e
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.
src/shared/bus-util.c
src/shared/bus-util.h
src/systemd/sd-bus.h