libxl: fix POLLHUP handling
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 31 Mar 2016 12:50:07 +0000 (14:50 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 6 Apr 2016 13:48:16 +0000 (14:48 +0100)
commitdee88aa2e0ce67bb595c4012eb530240a39892f0
tree386971118d3adf5c57201b4ee15436698aa3138f
parentef498d99bb6d722d83ae026914dd4709bbe14caf
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>
tools/libxl/libxl_bootloader.c