If qemu dies during launch in "null vmchannel" mode, don't hang (RHBZ#579155).
authorRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 18:07:45 +0000 (19:07 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 18:07:45 +0000 (19:07 +0100)
commite35debd642bea240609775610b68145dab0a634b
tree974a5924538888f46c4f4dec21a868f694c206a9
parentdc5df3bfec706803e75a5f2454293db30e753249
If qemu dies during launch in "null vmchannel" mode, don't hang (RHBZ#579155).

Detect if qemu dies during launch by wait(2)-ing for it, and
then getting EOF on the qemu pipe.  This was broken in null
vmchannel mode, causing a hang.
src/guestfs.c