[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/4] tools/libxl: Initialise the fd of the unused half of a datacopier
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.cooper3@xxxxxxxxxx> >> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> >> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> >> CC: Wei Liu <wei.liu2@xxxxxxxxxx> >> --- >> 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |