|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From abb4c1cc0161cc6b371ee7ea2550df17a3bfc21e Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 21 Aug 2014 16:17:02 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] service: asynchronous_close() already checks for negative
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
parameters, no need to duplicate that
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/service.c | 3 ---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/service.c b/src/core/service.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 887b1c8514..008e81437d 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/service.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/service.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -180,9 +180,6 @@ static int service_set_main_pid(Service *s, pid_t pid) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
static void service_close_socket_fd(Service *s) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(s);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- if (s->socket_fd < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- return;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
s->socket_fd = asynchronous_close(s->socket_fd);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|