From e34af1161d49e73484d6957001c0f7bcc6366181 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 26 Jun 2012 13:31:58 +0100 Subject: launch: Set g->sock = -1 to avoid double-close. This fixes commit ef5c02c6ee72eb8e127115923951777a2c2b8480. (cherry picked from commit 11317b5d1243f3afc35f7abe8edc646f75813e36) --- src/launch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/launch.c b/src/launch.c index 9e214bc0..152b4d97 100644 --- a/src/launch.c +++ b/src/launch.c @@ -957,6 +957,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. */ -- cgit