chiark / gitweb /
unit: rework stop pending logic
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Apr 2013 00:57:41 +0000 (21:57 -0300)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Apr 2013 01:01:49 +0000 (22:01 -0300)
When a trigger unit wants to know if a stop is queued for it, we should
just check precisely that and do not check whether it is actually
stopped already. This is because we use these checks usually from state
change calls where the state variables are not updated yet.

This change splits unit_pending_inactive() into two calls
unit_inactive_or_pending() and unit_stop_pending(). The former checks
state and pending jobs, the latter only pending jobs.


No differences found