From fb4ec82d97f71963ea7f830cb0bc38abefcbac99 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 8 Apr 2010 18:53:40 +0100 Subject: [PATCH] Fix for "warning: unexpected connection from UID ..." This warning is currently a fatal error. The code attempts to retry the accept call, but because we don't reset sock = -1 the retry doesn't happen and it dies anyway. Set sock = -1 so the retry attempt can happen. --- src/guestfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guestfs.c b/src/guestfs.c index e235fdc..ed514dc 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1405,6 +1405,7 @@ guestfs__launch (guestfs_h *g) "libguestfs: warning: unexpected connection from UID %d to port %d\n", uid, null_vmchannel_sock); close (sock); + sock = -1; continue; } } -- 1.8.3.1