sd-bus: make BUS_DEFAULT_TIMEOUT configurable

System Internals / systemd - Yu Watanabe [gmail.com] - 16 July 2018 13:11 EDT

This adds sd_bus_{get,set}_method_call_timeout(). If the timeout is not set or set to 0, then the timeout value is parsed from $SYSTEMD_BUS_TIMEOUT= environment variable. If the environment variable is not set, then built-in timeout is used.

385b2eb26 sd-bus: make BUS_DEFAULT_TIMEOUT configurable
doc/ENVIRONMENT.md | 5 +++++
src/libsystemd/libsystemd.sym | 2 ++
src/libsystemd/sd-bus/bus-internal.h | 9 ++++----
src/libsystemd/sd-bus/bus-message.c | 7 +++++--
src/libsystemd/sd-bus/sd-bus.c | 40 ++++++++++++++++++++++++++++++++++--
src/systemd/sd-bus.h | 3 +++
6 files changed, 58 insertions(+), 8 deletions(-)

Upstream: github.com


  • Share