jobd: keep processing queue properly near the end
commit2a2764b12094ec012d63e769f0bed7a6daa98d3e
authorJan Krüger <jk@jk.gs>
Fri, 5 Nov 2010 04:10:41 +0000 (5 05:10 +0100)
committerJan Krüger <jk@jk.gs>
Fri, 5 Nov 2010 04:10:41 +0000 (5 05:10 +0100)
tree37efe910d99064879bdccab239c5d0e62beed073
parentabe2a947e75d28e041ca69b32158ebb67d0560dc
jobd: keep processing queue properly near the end

Previously, jobd forgot to check periodically for status updates when
only a few running jobs and no queued jobs were left, instead checking
in a tight loop. Instead, make it sleep even then.

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