summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
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);
+}