mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
after installing the transaction make sure we kill all remains ob the transaction
This commit is contained in:
parent
8f5847c48e
commit
01184e042b
@ -536,13 +536,17 @@ static int transaction_apply(Manager *m, JobMode mode) {
|
||||
assert(!j->transaction_next);
|
||||
assert(!j->transaction_prev);
|
||||
|
||||
}
|
||||
|
||||
/* As last step, kill all remaining job dependencies. */
|
||||
HASHMAP_FOREACH(j, m->jobs, i) {
|
||||
while (j->subject_list)
|
||||
job_dependency_free(j->subject_list);
|
||||
while (j->object_list)
|
||||
job_dependency_free(j->object_list);
|
||||
}
|
||||
|
||||
m->transaction_anchor = NULL;
|
||||
assert(!m->transaction_anchor);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user