summaryrefslogtreecommitdiffstats
path: root/po/kn.po
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-26 14:39:16 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-26 14:53:33 +0100
commitc87956837e962072fff61edef5b18e55ad42d730 (patch)
treef9b069045369aa336dac1f1479a5c4776303b725 /po/kn.po
parent9e221e55b61e9f1cd0caf292ca609a4ca26f1d4d (diff)
downloadlibguestfs-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