diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-26 14:39:16 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-26 14:53:33 +0100 |
commit | c87956837e962072fff61edef5b18e55ad42d730 (patch) | |
tree | f9b069045369aa336dac1f1479a5c4776303b725 /po/kn.po | |
parent | 9e221e55b61e9f1cd0caf292ca609a4ca26f1d4d (diff) | |
download | libguestfs-c87956837e962072fff61edef5b18e55ad42d730.tar.gz libguestfs-c87956837e962072fff61edef5b18e55ad42d730.tar.xz libguestfs-c87956837e962072fff61edef5b18e55ad42d730.zip |
launch: Avoid double-close when qemu exits early.
The stdin and stdout of the qemu process are aliased to g->fd:
g->fd[0] = wfd[1];
g->fd[1] = rfd[0];
However if the child exits early, then child_cleanup closes g->fd[0],
g->fd[1], AND the code at the cleanup1 label closes wfd[1], rfd[0],
resulting in a double-close.
Avoid this case by setting wfd[1], rfd[0] to -1. In the cleanup1
label, only close wfd[1], rfd[0] if they are not -1, and add the same
for g->fd[0], g->fd[1].
Diffstat (limited to 'po/kn.po')
0 files changed, 0 insertions, 0 deletions