From 6203e07a83214a55bb1f88508fcda2005c601dea Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 22:21:25 +0100 Subject: event: rework sd-event exit logic With this change a failing event source handler will not cause the entire event loop to fail. Instead, we just disable the specific event source, log a message at debug level and go on. This also introduces a new concept of "exit code" which can be stored in the event loop and is returned by sd_event_loop(). We also rename "quit" to "exit" everywhere else. Altogether this should make things more robus and keep errors local while still providing a way to return event loop errors in a clear way. --- src/libsystemd-bus/libsystemd-bus.sym | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsystemd-bus/libsystemd-bus.sym') diff --git a/src/libsystemd-bus/libsystemd-bus.sym b/src/libsystemd-bus/libsystemd-bus.sym index 4a849b382a..f3dbb760ce 100644 --- a/src/libsystemd-bus/libsystemd-bus.sym +++ b/src/libsystemd-bus/libsystemd-bus.sym @@ -227,15 +227,15 @@ global: sd_event_add_signal; sd_event_add_child; sd_event_add_defer; - sd_event_add_quit; + sd_event_add_exit; sd_event_run; sd_event_loop; + sd_event_exit; sd_event_get_state; sd_event_get_tid; - sd_event_get_quit; - sd_event_request_quit; + sd_event_get_exit_code; sd_event_get_now_realtime; sd_event_get_now_monotonic; sd_event_set_watchdog; -- cgit v1.2.3-54-g00ecf