diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-08-22 17:19:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-22 17:31:41 +0200 |
commit | fbb4603d487d329bdd7aff744ff9ba7a7c2a2965 (patch) | |
tree | d98d4204506d5a7a71d158c9f3aff31a891483c7 /src/libsystemd/libsystemd.sym | |
parent | 2c5f295823028bd4cf8250d1e4e56a8712f78cc8 (diff) |
sd-bus: optionally, exit process or event loop on disconnect
Old libdbus has a feature that the process is terminated whenever the the bus
connection receives a disconnect. This is pretty useful on desktop apps (where
a disconnect indicates session termination), as well as on command line apps
(where we really shouldn't stay hanging in most cases if dbus daemon goes
down).
Add a similar feature to sd-bus, but make it opt-in rather than opt-out, like
it is on libdbus. Also, if the bus is attached to an event loop just exit the
event loop rather than the the whole process.
Diffstat (limited to 'src/libsystemd/libsystemd.sym')
-rw-r--r-- | src/libsystemd/libsystemd.sym | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/libsystemd.sym b/src/libsystemd/libsystemd.sym index ae60e346eb..70ea347361 100644 --- a/src/libsystemd/libsystemd.sym +++ b/src/libsystemd/libsystemd.sym @@ -507,4 +507,6 @@ global: sd_bus_track_get_recursive; sd_bus_track_count_name; sd_bus_track_count_sender; + sd_bus_set_exit_on_disconnect; + sd_bus_get_exit_on_disconnect; } LIBSYSTEMD_231; |