]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/bus-socket.c
sd-bus: optionally, use inotify to wait for bus sockets to appear
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 21:24:52 +0000 (22:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:55:08 +0000 (13:55 +0100)
commit8a5cd31e5fa0b1313a196b902e4b3c4603e7dfdf
tree2b2abd84deac871c259ed03fd639caf936017770
parent5b5e6deabb8b76bcd691c4e40429bd8478a49a32
sd-bus: optionally, use inotify to wait for bus sockets to appear

This adds a "watch-bind" feature to sd-bus connections. If set and the
AF_UNIX socket we are connecting to doesn't exist yet, we'll establish
an inotify watch instead, and wait for the socket to appear. In other
words, a missing AF_UNIX just makes connecting slower.

This is useful for daemons such as networkd or resolved that shall be
able to run during early-boot, before dbus-daemon is up, and want to
connect to dbus-daemon as soon as it becomes ready.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/bus-socket.c
src/libsystemd/sd-bus/bus-socket.h
src/libsystemd/sd-bus/sd-bus.c
src/libsystemd/sd-bus/test-bus-watch-bind.c [new file with mode: 0644]
src/systemd/sd-bus.h
src/test/meson.build