summaryrefslogtreecommitdiffstats
path: root/src/core/service.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-19 13:44:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-20 16:37:06 +0200
commit569554d9e5b4ee4165c87bd3fd2e59509b89ab44 (patch)
tree6b03c6026412fb20b4bd1448c865bd475d30ed4c /src/core/service.c
parentMerge pull request #12577 from yuwata/test-network-issue-12344 (diff)
downloadsystemd-569554d9e5b4ee4165c87bd3fd2e59509b89ab44.tar.xz
systemd-569554d9e5b4ee4165c87bd3fd2e59509b89ab44.zip
core/service: drop {}
Diffstat (limited to 'src/core/service.c')
-rw-r--r--src/core/service.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/service.c b/src/core/service.c
index cfb0a7bc72..f16601a728 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -2047,9 +2047,10 @@ static int service_adverse_to_leftover_processes(Service *s) {
* aren't as rigoriously written to protect aganst against multiple use. */
if (unit_warn_leftover_processes(UNIT(s)) &&
IN_SET(s->kill_context.kill_mode, KILL_MIXED, KILL_CONTROL_GROUP) &&
- !s->kill_context.send_sigkill) {
- return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(EBUSY), "Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist");
- }
+ !s->kill_context.send_sigkill)
+ return log_unit_error_errno(UNIT(s), SYNTHETIC_ERRNO(EBUSY),
+ "Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist");
+
return 0;
}