summaryrefslogtreecommitdiff
path: root/src/core/job.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/job.c
parentd420282b28f50720e233ccb1c02547c562195653 (diff)
core: add new "flush" job mode to cancel all other jobs when queuing a new job
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 9cd6ce24b8..557917a70b 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -1107,7 +1107,8 @@ static const char* const job_mode_table[_JOB_MODE_MAX] = {
[JOB_REPLACE_IRREVERSIBLY] = "replace-irreversibly",
[JOB_ISOLATE] = "isolate",
[JOB_IGNORE_DEPENDENCIES] = "ignore-dependencies",
- [JOB_IGNORE_REQUIREMENTS] = "ignore-requirements"
+ [JOB_IGNORE_REQUIREMENTS] = "ignore-requirements",
+ [JOB_FLUSH] = "flush",
};
DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode);