Fix for "warning: unexpected connection from UID ..."
authorRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 17:53:40 +0000 (18:53 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 21:23:18 +0000 (22:23 +0100)
commit08ddf6b1d9b6c19c87b82a44d5e0fffd70e41635
tree0f1f5748711a4fe3b07269ea439ede8d2d2136f0
parentb5fc0f478f3f61d0ba61c7f3233ce136e6c24aa8
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.
(cherry picked from commit fb4ec82d97f71963ea7f830cb0bc38abefcbac99)
src/guestfs.c