mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: fix POLLHUP handling
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.pau@citrix.com> Suggested-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
ef498d99bb
commit
dee88aa2e0
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||