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

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



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

    cxenstored: 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/xenstore/xenstored_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
index 7f72f68..4eaff57 100644
--- a/tools/xenstore/xenstored_core.c
+++ b/tools/xenstore/xenstored_core.c
@@ -1770,7 +1770,7 @@ static void xen_claim_active_sockets(int **psock, int 
**pro_sock)
                           strerror(errno),
                           errno);
                barf_perror("sd_listen_fds() failed\n");
-       } 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®.