git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50195d6
)
Fix for "warning: unexpected connection from UID ..."
author
Richard Jones
<rjones@redhat.com>
Thu, 8 Apr 2010 17:53:40 +0000
(18:53 +0100)
committer
Richard Jones
<rjones@redhat.com>
Thu, 8 Apr 2010 17:53:40 +0000
(18:53 +0100)
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
patch
|
blob
|
history
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
e235fdc
..
ed514dc
100644
(file)
--- 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;
}
}