mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
manager: fix finish_timestamp calculation
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032100.html
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user