Anthony Liguori
2005-Aug-08 17:51 UTC
[Xen-devel] [PATCH] Make sure to return false on error conditions to prevent xenconsoled running in an infinite loop when xcs gets killed.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> utils.c | 2 ++ 1 files changed, 2 insertions(+) # HG changeset patch # User root@rockhopper.austin.ibm.com # 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@lists.xensource.com http://lists.xensource.com/xen-devel