[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v8 1/6] cxenstored: 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/xenstore/xenstored_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 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 |