[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] oxenstored: also fail if only 1 socket was given by systemd



commit 1846031d472f85b44d873bce76c6ceca9649efbd
Author:     Luis R. Rodriguez <mcgrof@xxxxxxxx>
AuthorDate: Fri Jul 25 19:14:16 2014 -0700
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Mon Jul 28 13:44:18 2014 +0100

    oxenstored: also fail if only 1 socket was given by systemd
    
    Reported-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 tools/ocaml/xenstored/systemd_stubs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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",
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.