jobd: properly skip unnecessary jobs
commitedbb1cb3ce0c8bb83d0ebff085d25e758d46998b
authorJan Krüger <jk@jk.gs>
Fri, 5 Nov 2010 03:10:40 +0000 (5 04:10 +0100)
committerJan Krüger <jk@jk.gs>
Fri, 5 Nov 2010 03:10:40 +0000 (5 04:10 +0100)
treea91b8fc11db5363ad51c066c1444c4af63c6c426
parent732793e42b09ddfc10ae040d3acffd58d5a49377
jobd: properly skip unnecessary jobs

Previously, jobs were skipped by having them execute /bin/false. That is
not only a waste of resources but can also cause annoying race
conditions if false exits more quickly than we can associate it with its
PID. Therefore, add a proper system for skipping jobs altogether and
include skipped jobs in progress output.

Signed-off-by: Jan Krüger <jk@jk.gs>
jobd/jobd.pl