WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Cope with -1 eventchn_fd -- this occurs when using --no-

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Cope with -1 eventchn_fd -- this occurs when using --no-domain-init (a
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Feb 2006 03:40:06 +0000
Delivery-date: Fri, 10 Feb 2006 03:52:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 47013962e41102677b95d1422a5e7bddfd1e125f
# Parent  52b2dc7fb9b731562002c09f59453f7c0ad6fe59
Cope with -1 eventchn_fd -- this occurs when using --no-domain-init (a
command line debugging option).

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 52b2dc7fb9b7 -r 47013962e411 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Fri Feb 10 01:09:19 2006
+++ b/tools/xenstore/xenstored_core.c   Fri Feb 10 02:23:36 2006
@@ -339,6 +339,8 @@
 
 static void set_fd(int fd, fd_set *set, int *max)
 {
+       if (fd < 0)
+               return;
        FD_SET(fd, set);
        if (fd > *max)
                *max = fd;
@@ -1670,7 +1672,7 @@
                if (FD_ISSET(*ro_sock, &inset))
                        accept_connection(*ro_sock, false);
 
-               if (FD_ISSET(eventchn_fd, &inset))
+               if (eventchn_fd > 0 && FD_ISSET(eventchn_fd, &inset))
                        handle_event();
 
                list_for_each_entry(i, &connections, list) {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Cope with -1 eventchn_fd -- this occurs when using --no-domain-init (a, Xen patchbot -unstable <=