[PATCH] virNetServer: Don't fail if we can't initialize avahi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



since libvird won't start otherwise without avahi running.

Having avahi compiled in shouldn't force us to have avahi running.
---
 src/rpc/virnetserver.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index f761e6b..ab6d112 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -695,9 +695,8 @@ void virNetServerRun(virNetServerPtr srv)
     virNetServerLock(srv);
 
 #if HAVE_AVAHI
-    if (srv->mdns &&
-        virNetServerMDNSStart(srv->mdns) < 0)
-        goto cleanup;
+    if (srv->mdns)
+        virNetServerMDNSStart(srv->mdns);
 #endif
 
     if (srv->autoShutdownTimeout &&
-- 
1.7.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]