]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add a new unit_needs_console() call
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 18:54:26 +0000 (19:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 18:54:26 +0000 (19:54 +0100)
commitbb2c7685454842549bc1fe47adc35cbca2a84190
tree74112186600910033707573a5162908e377656eb
parent46fb617bf94a202c74e753407f28d59bec1339f7
core: add a new unit_needs_console() call

This call determines whether a specific unit currently needs access to
the console. It's a fancy wrapper around
exec_context_may_touch_console() ultimately, however for service units
we'll explicitly exclude the SERVICE_EXITED state from when we report
true.
src/core/service.c
src/core/unit.c
src/core/unit.h