projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c94096
)
service: asynchronous_close() already checks for negative parameters, no need to...
author
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Aug 2014 14:17:02 +0000
(16:17 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Aug 2014 15:24:21 +0000
(17:24 +0200)
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index
887b1c8
..
008e814
100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-180,9
+180,6
@@
static int service_set_main_pid(Service *s, pid_t pid) {
static void service_close_socket_fd(Service *s) {
assert(s);
- if (s->socket_fd < 0)
- return;
-
s->socket_fd = asynchronous_close(s->socket_fd);
}