Skip to content

Commit

Permalink
transaction: don't cancel jobs for units with IgnoreOnIsolate=true (s…
Browse files Browse the repository at this point in the history
…ystemd#3671)

This is important if a job was queued for a unit but not yet started.
Without this, the job will be canceled and is never executed even though
IgnoreOnIsolate it set to 'true'.
  • Loading branch information
michaelolbrich authored and poettering committed Jul 25, 2016
1 parent c8091d9 commit 2de0b9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,9 @@ static int transaction_apply(Transaction *tr, Manager *m, JobMode mode) {
HASHMAP_FOREACH(j, m->jobs, i) {
assert(j->installed);

if (j->unit->ignore_on_isolate)
continue;

if (hashmap_get(tr->jobs, j->unit))
continue;

Expand Down

0 comments on commit 2de0b9e

Please sign in to comment.