On Thu, Mar 31, 2016 at 02:50:07PM +0200, Roger Pau Monne wrote: > The current code in bootloader_copyfail will error out on expected POLLHUPs > because of a missing "else" in the if clause. > > The behaviour that triggers this bug has only been seen on FreeBSD so far. > > Signed-off-by: Roger Pau Monné <roger....@citrix.com> > Suggested-by: Ian Jackson <ian.jack...@eu.citrix.com>
Acked-by: Wei Liu <wei.l...@citrix.com> > --- > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Wei Liu <wei.l...@citrix.com> > --- > tools/libxl/libxl_bootloader.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c > index 0ae074a..2cfc8cf 100644 > --- a/tools/libxl/libxl_bootloader.c > +++ b/tools/libxl/libxl_bootloader.c > @@ -591,8 +591,7 @@ static void bootloader_copyfail(libxl__egc *egc, const > char *which, > } else { > LOG(ERROR, "unexpected POLLHUP on %s", which); > } > - } > - if (!rc) { > + } else if (!rc) { > LOG(ERROR, "unexpected eof copying %s", which); > rc = ERROR_FAIL; > } > -- > 2.6.4 (Apple Git-63) > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel