projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
144e53b
)
core/service: minor coding style tweak
author
Mike Yuan
<me@yhndnzj.com>
Mon, 26 Aug 2024 20:29:15 +0000
(22:29 +0200)
committer
Mike Yuan
<me@yhndnzj.com>
Wed, 4 Sep 2024 19:37:19 +0000
(21:37 +0200)
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index 663fdb30f2cc231a3c75270c0606aac6158cd241..56bae20112e78ce22f2873c25121491957cd14ac 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-1456,10
+1456,9
@@
static int service_collect_fds(
rn_socket_fds = 1;
} else {
- Unit *u;
-
/* Pass all our configured sockets for singleton services */
+ Unit *u;
UNIT_FOREACH_DEPENDENCY(u, UNIT(s), UNIT_ATOM_TRIGGERED_BY) {
_cleanup_free_ int *cfds = NULL;
int cn_fds;
@@
-1472,8
+1471,7
@@
static int service_collect_fds(
cn_fds = socket_collect_fds(sock, &cfds);
if (cn_fds < 0)
return cn_fds;
-
- if (cn_fds <= 0)
+ if (cn_fds == 0)
continue;
if (!rfds) {