On 17/07/15 17:55, Wei Liu wrote: > On Fri, Jul 17, 2015 at 05:51:18PM +0100, Andrew Cooper wrote: >> This bug causes a spurious failure if stdin happens to be an >> appropriately readable/writeable pipe which receives a POLLHUP >> >> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> >> CC: Ian Campbell <ian.campb...@citrix.com> >> CC: Ian Jackson <ian.jack...@eu.citrix.com> >> CC: Wei Liu <wei.l...@citrix.com> >> --- >> tools/libxl/libxl_stream_read.c | 1 + >> tools/libxl/libxl_stream_write.c | 1 + >> 2 files changed, 2 insertions(+) >> >> diff --git a/tools/libxl/libxl_stream_read.c >> b/tools/libxl/libxl_stream_read.c >> index 3e1cd2a..32a3551 100644 >> --- a/tools/libxl/libxl_stream_read.c >> +++ b/tools/libxl/libxl_stream_read.c >> @@ -611,6 +611,7 @@ static void write_emulator_blob(libxl__egc *egc, >> dc->writewhat = "qemu save file"; >> dc->copywhat = "restore v2 stream"; >> dc->writefd = writefd; >> + dc->readfd = -1; >> dc->maxsz = -1; >> dc->callback = write_emulator_done; >> >> diff --git a/tools/libxl/libxl_stream_write.c >> b/tools/libxl/libxl_stream_write.c >> index 94f681b..47f71c0 100644 >> --- a/tools/libxl/libxl_stream_write.c >> +++ b/tools/libxl/libxl_stream_write.c >> @@ -389,6 +389,7 @@ static void write_emulator_record(libxl__egc *egc, >> dc->readwhat = "qemu save file"; >> dc->copywhat = "save v2 stream"; >> dc->readfd = readfd; >> + dc->readfd = -1; > writefd
Oops :s yes. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel