sd-bus: propagate handling errors for Hello method reply directly
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Dec 2017 22:26:36 +0000 (23:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:55:08 +0000 (13:55 +0100)
commitb057498a5275c8734b7e430f7d9b1dd13243c98a
tree301d6754a42270b3ff315a6b067083d25b35d6c8
parentb33652fe9117466a2b05bbc698cd1037f439dd9b
sd-bus: propagate handling errors for Hello method reply directly

Currently, when sd-bus is used to issue a method call, and we get a
reply and the specified reply handler fails, we log this locally at
debug priority and proceed. The idea is that a bad server-side reply
should not be fatal for the program, except when the developer
explicitly terminates the event loop.

The reply to the initial Hello() method call we issue when joining a bus
should not be handled like that however. Instead, propagate the error
immediately, as anything that is wrong with the Hello() reply should be
considered a fatal connection problem.
src/libsystemd/sd-bus/sd-bus.c