]> git.ipfire.org Git - thirdparty/systemd.git/commit
service: simplify condition
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2018 16:51:53 +0000 (17:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 20:29:31 +0000 (21:29 +0100)
commit9acac21249b58f55a120a0d492aa5a26ecb37204
treee9b1ecf104130c59b2ea0ca50c0556a70391b216
parenteabd3e56a6c263a5f5702cb80b2080a855be4567
service: simplify condition

The left side of the || expression is conditionalized on SERVICE_START,
but SERVICE_START is blanket listed on the right side anyway, hence we
can drop the left side entirely without any change in behaviour.

Moreover, if main_pid is initialized, it should be watched, hence this
is even the safe and right thing to do.
src/core/service.c