projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc74c9
)
oxenstored: also fail if only 1 socket was given by systemd
author
Luis R. Rodriguez
<mcgrof@suse.com>
Sat, 26 Jul 2014 02:14:16 +0000
(19:14 -0700)
committer
Ian Campbell
<ian.campbell@citrix.com>
Mon, 28 Jul 2014 12:44:18 +0000
(13:44 +0100)
Reported-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/xenstored/systemd_stubs.c
patch
|
blob
|
history
diff --git
a/tools/ocaml/xenstored/systemd_stubs.c
b/tools/ocaml/xenstored/systemd_stubs.c
index a368ac10e1e094bd5e8fc897f84d8d8dd022dbfc..623592c95f1f977e45ec8e299e8adbaa9d4728fe 100644
(file)
--- a/
tools/ocaml/xenstored/systemd_stubs.c
+++ b/
tools/ocaml/xenstored/systemd_stubs.c
@@
-72,7
+72,7
@@
CAMLprim value ocaml_sd_listen_fds(value connect_to)
strerror(errno),
errno);
caml_failwith("ocaml_sd_listen_fds() failed to get any sockets");
- } else if (n
>
2) {
+ } else if (n
!=
2) {
fprintf(stderr, SD_ERR "Expected 2 fds but given %d\n", n);
sd_notifyf(0, "STATUS=Mismatch on number (2): %s\n"
"ERRNO=%d",