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/timedate/timedated.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/timedate/timedated.c') diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 37173a252c..8ac933c5ee 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -863,8 +863,6 @@ int main(int argc, char *argv[]) { goto finish; } - r = 0; - finish: context_free(&context, bus); -- cgit v1.2.3-54-g00ecf