summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-21 02:59:12 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-21 02:59:12 +0100
commite094e853a047e10f0d2989eed76b6aa430e3ea1a (patch)
tree29acb378f3f659399c474ba516ca02ae6051a59d /job.c
parent1ffba6fe82d65f2a87b53a21c7927bca8176038c (diff)
make sure impact of transactions is minimized
Diffstat (limited to 'job.c')
-rw-r--r--job.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/job.c b/job.c
index 6241f203f9..d22ce19ee1 100644
--- a/job.c
+++ b/job.c
@@ -264,3 +264,12 @@ bool job_type_is_superset(JobType a, JobType b) {
}
}
+
+bool job_type_is_conflicting(JobType a, JobType b) {
+
+ /* Checks whether two types are "conflicting" */
+
+ return
+ (a == JOB_STOP && b != JOB_STOP) ||
+ (b == JOB_STOP && a != JOB_STOP);
+}