chiark / gitweb /
systemd-stdio-bridge: make it socket-activatable and usable as kdbus bridge
authorDaniel Mack <zonque@gmail.com>
Fri, 15 Nov 2013 17:05:27 +0000 (18:05 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 29 Nov 2013 13:06:50 +0000 (14:06 +0100)
commit71008e18a0bf9e9b96348fe2fb751aea23397186
treec2540bbbba0a00ccbc08354b63efb2081458fd34
parented99569df8e568c1998c3b47bea33ec24b89d787
systemd-stdio-bridge: make it socket-activatable and usable as kdbus bridge

Augment systemd-stdio-bridge a bit to make it a 1:1 bridge from legacy
DBus clients to kdbus. In particular,

 * allow setting the bus path of the upstream bus as command line
   argument
 * use sd_listen_fds() for systemd's socket activation
 * omit calling sd_bus_negotiate_fds() when upstream bus is kdbus
 * reply to bus send errors with proper dbus error messages
 * treat -ECONNRESET as expected end-of-connection condition
src/stdio-bridge/stdio-bridge.c