[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v8 2/6] oxenstored: also fail if only 1 socket was given by systemd
From: "Luis R. Rodriguez" <mcgrof@xxxxxxxx> Reported-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxx> --- tools/ocaml/xenstored/systemd_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ocaml/xenstored/systemd_stubs.c b/tools/ocaml/xenstored/systemd_stubs.c index a368ac1..623592c 100644 --- 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", -- 2.0.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |