Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d4227bd
)
Fix issue in using systemd socket activation
author
José Bollo
<jose.bollo@iot.bzh>
Mon, 12 Jun 2017 15:34:29 +0000
(17:34 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Mon, 12 Jun 2017 16:18:38 +0000
(18:18 +0200)
When afb-daemon was launched without systemd it crashed
in sd_fds_for.
Change-Id: I481f5d1a24ec45f8cacae32792b2e47dfa62f611
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/sd-fds.c
patch
|
blob
|
history
diff --git
a/src/sd-fds.c
b/src/sd-fds.c
index
477da52
..
d904954
100644
(file)
--- a/
src/sd-fds.c
+++ b/
src/sd-fds.c
@@
-37,9
+37,9
@@
int sd_fds_init()
else {
init_done = 1;
rc = sd_listen_fds_with_names(1, &names);
- if (rc < 0) {
+ if (rc <
=
0) {
errno = -rc;
- rc = -
1
;
+ rc = -
!!rc
;
names = &null;
}
}