diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-26 13:31:58 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-26 13:31:58 +0100 |
commit | 11317b5d1243f3afc35f7abe8edc646f75813e36 (patch) | |
tree | 7beffb96aecb4cd902a4a04ed179ec1fffef4853 /src | |
parent | ef5c02c6ee72eb8e127115923951777a2c2b8480 (diff) | |
download | libguestfs-11317b5d1243f3afc35f7abe8edc646f75813e36.tar.gz libguestfs-11317b5d1243f3afc35f7abe8edc646f75813e36.tar.xz libguestfs-11317b5d1243f3afc35f7abe8edc646f75813e36.zip |
launch: Set g->sock = -1 to avoid double-close.
This fixes commit ef5c02c6ee72eb8e127115923951777a2c2b8480.
Diffstat (limited to 'src')
-rw-r--r-- | src/launch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c index 493455fb..0317875e 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1052,6 +1052,7 @@ launch_appliance (guestfs_h *g) if (close (g->sock) != 0) { perrorf (g, "close: listening socket"); close (r); + g->sock = -1; goto cleanup1; } g->sock = r; /* This is the accepted data socket. */ |