]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
manager: fix finish_timestamp calculation
authorLennart Poettering <lennart@poettering.net>
Thu, 21 May 2015 19:34:36 +0000 (21:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 May 2015 19:34:36 +0000 (21:34 +0200)
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032100.html

src/core/manager.c

index 5af5ce3b73a44339c084ad0ee66b12ed773a9a35..b931b0d71d83ae4889b5ce0d8550d97c5f61a453 100644 (file)
@@ -2706,6 +2706,12 @@ void manager_check_finished(Manager *m) {
         if (m->n_reloading > 0)
                 return;
 
+        /* Verify that we are actually running currently. Initially
+         * the exit code is set to invalid, and during operation it is
+         * then set to MANAGER_OK */
+        if (m->exit_code != MANAGER_OK)
+                return;
+
         if (hashmap_size(m->jobs) > 0) {
 
                 if (m->jobs_in_progress_event_source)