Skip to contentSkip to conversation

xendbooloader bugfix

PATCH New aq 1 participant 1 message May 25, 2005

lore
Share & tools
lore

aq

author
#0 lore raw

PATCH 1/1 xendbooloader bugfix

hello,

this patch fixes a wrong email address and replaces a number (errno) with a defined constant to make it more portable.

$ diffstat xendbootloader.patch 
 XendBootloader.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

===== tools/python/xen/xend/XendBootloader.py 1.2 vs edited =====

tools/python/xen/xend/XendBootloader.py +3 -3
@@ -2,7 +2,7 @@
 # XendBootloader.py - Framework to run a boot loader for picking the kernel
 #
 # Copyright 2005 Red Hat, Inc.
-# Jeremy Katz <katzj@xxxxxxxxxx>
+# Jeremy Katz <[email protected]>
 #
 # This software may be freely redistributed under the terms of the GNU
 # general public license.
@@ -12,7 +12,7 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 
-import os, sys, select
+import os, sys, select, errno
 import sxp
 
 from XendLogging import log
@@ -61,7 +61,7 @@
         try:
             r = os.open(BL_FIFO, os.O_RDONLY)
         except OSError, e:
-            if e.errno == 4:
+            if e.errno == errno.EINTR:
                 continue
         break
     ret = ""

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel