chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: don't make use of the private bus socket if kdbus is available
[elogind.git]
/
src
/
core
/
service.c
diff --git
a/src/core/service.c
b/src/core/service.c
index fcfeda738249cbf39353a4a5d24045e8b26da6d2..530a305b4bd00dbc6efd5b7a60683c45b30c442d 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-2827,7
+2827,7
@@
_pure_ static bool service_check_snapshot(Unit *u) {
assert(s);
- return
!s->got_socket_fd
;
+ return
(s->socket_fd < 0)
;
}
static int service_retry_pid_file(Service *s) {
@@
-3709,7
+3709,6
@@
int service_set_socket_fd(Service *s, int fd, Socket *sock) {
return -EAGAIN;
s->socket_fd = fd;
- s->got_socket_fd = true;
unit_ref_set(&s->accept_socket, UNIT(sock));