chiark / gitweb /
core: rework counting of running jobs
authorLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2015 16:22:10 +0000 (17:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2015 16:54:59 +0000 (17:54 +0100)
commit9c3349e23b14db27e7ba45f82cf647899c563ea9
tree387cb16085148be5626917ae4a83afdc3bc61d3e
parentbbe05969ec5b8b89a20f052f63ebb3790c0c5574
core: rework counting of running jobs

Let's unify the code that counts the running jobs a bit, in order to
make sure we are less likely to miss one.

This is related to this bug:

https://bugs.freedesktop.org/show_bug.cgi?id=87349

However, it probably won't fix it fully, and I cannot reproduce the issue.

The change also adds an explicit assert change when the counter is off.
src/core/job.c
src/core/manager.c
src/core/unit.c