]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Report error if unable to bind to any socket
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Jul 2011 00:14:02 +0000 (08:14 +0800)
committerDaniel Veillard <veillard@redhat.com>
Tue, 26 Jul 2011 00:14:02 +0000 (08:14 +0800)
commita44585972a16ecd4eddcb6528fe654049bb4fb34
treee7e325e8e38c83af82a0b3699986c84039dd7b07
parent4bfd0cf7002ecb3855fcb000962298bc4d3049e0
Report error if unable to bind to any socket

When setting up a server socket, we must skip EADDRINUSE errors
from bind, since the IPv6 socket bind may have already bound to
the IPv4 socket too. If we don't manage to bind to any sockets
at all though, we should then report the EADDRINUSE error as
normal.

This fixes the case where libvirtd would not exit if some other
program was listening on its TCP/TLS ports.

* src/rpc/virnetsocket.c: Report EADDRINUSE
src/rpc/virnetsocket.c