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-devel

[Xen-devel] [PATCH] Make sure to return false on error conditions to pre

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make sure to return false on error conditions to prevent xenconsoled running in an infinite loop when xcs gets killed.
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Mon, 08 Aug 2005 12:51:54 -0500
Delivery-date: Mon, 08 Aug 2005 17:50:36 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

 utils.c |    2 ++
 1 files changed, 2 insertions(+)

# HG changeset patch
# User root@xxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 833aaf7a834f1e50f4692fc743212fdcfef65819
# Parent  f586b9ecd47476357b685707e21c7fc274cbd51c
Make sure to return false on error conditions to prevent xenconsoled running in 
an infinite loop when xcs gets killed.

diff -r f586b9ecd474 -r 833aaf7a834f tools/console/daemon/utils.c
--- a/tools/console/daemon/utils.c      Mon Aug  8 14:39:29 2005
+++ b/tools/console/daemon/utils.c      Mon Aug  8 17:40:34 2005
@@ -59,6 +59,8 @@
 
                if (len < 1) {
                        if (len == -1 && (errno == EAGAIN || errno == EINTR)) {
+                               continue;
+                       } else {
                                return false;
                        }
                } else {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make sure to return false on error conditions to prevent xenconsoled running in an infinite loop when xcs gets killed., Anthony Liguori <=