[libvirt] [PATCH v3] daemon: Unlink unix socket paths on shutdown

Daniel P. Berrange berrange at redhat.com
Thu Aug 4 08:49:54 UTC 2011


On Wed, Aug 03, 2011 at 09:37:18PM +0800, Osier Yang wrote:
> This patch introduces a internal RPC API "virNetServerClose", which
> is standalone with "virNetServerFree".  it closes all the socket fds,
> and unlinks the unix socket paths, regardless of whether the socket
> is still referenced or not.
> 
> This is to address regression bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=725702
> ---
>  daemon/libvirtd.c             |    1 +
>  src/rpc/virnetserver.c        |   16 ++++++++++++++++
>  src/rpc/virnetserver.h        |    1 +
>  src/rpc/virnetserverservice.c |   12 ++++++++++++
>  src/rpc/virnetserverservice.h |    2 ++
>  src/rpc/virnetsocket.c        |   22 ++++++++++++++++++++++
>  src/rpc/virnetsocket.h        |    1 +
>  7 files changed, 55 insertions(+), 0 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list