chiark / gitweb /
resolved: return exit code of event loop
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Aug 2014 17:33:09 +0000 (19:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Aug 2014 17:33:09 +0000 (19:33 +0200)
src/resolve/resolved.c

index 892bb51..8235558 100644 (file)
@@ -97,6 +97,8 @@ int main(int argc, char *argv[]) {
                 goto finish;
         }
 
+        sd_event_get_exit_code(m->event, &r);
+
 finish:
         sd_notify(false, "STATUS=Shutting down...");