summaryrefslogtreecommitdiff
path: root/src/core/transaction.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-26 02:13:41 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-26 02:26:31 +0100
commit255baef68a8d9d74cb3b846f93c290225ad162aa (patch)
treea814737c0cd3e63bc643c738438539dc9325e622 /src/core/transaction.c
parentd420282b28f50720e233ccb1c02547c562195653 (diff)
core: add new "flush" job mode to cancel all other jobs when queuing a new job
Diffstat (limited to 'src/core/transaction.c')
-rw-r--r--src/core/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c
index e2ff0bd1e5..36e31c45c9 100644
--- a/src/core/transaction.c
+++ b/src/core/transaction.c
@@ -578,7 +578,7 @@ static int transaction_apply(Transaction *tr, Manager *m, JobMode mode) {
/* Moves the transaction jobs to the set of active jobs */
- if (mode == JOB_ISOLATE) {
+ if (mode == JOB_ISOLATE || mode == JOB_FLUSH) {
/* When isolating first kill all installed jobs which
* aren't part of the new transaction */