summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge>2007-02-12 23:44:39 +0000
committerrunge <runge>2007-02-12 23:44:39 +0000
commit241f3ed566d34bf5b6c67ebebcc00727134d93b2 (patch)
treee42ddc70dc6a50503a2e22aef238c7a1fde7fb43 /x11vnc/cleanup.c
parent0016cd4280ee9a0d088454a508a9c7f6bde33f62 (diff)
downloadlibvncserver-241f3ed566d34bf5b6c67ebebcc00727134d93b2.zip
libvncserver-241f3ed566d34bf5b6c67ebebcc00727134d93b2.tar.gz
x11vnc: add avahi (aka mDNS/Zeroconf/Bonjour...) support thanks to Diego Petteno. add -find -create
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index a81a798..3643c39 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -14,6 +14,7 @@
#include "connections.h"
#include "macosx.h"
#include "macosxCG.h"
+#include "avahi.h"
/*
* Exiting and error handling routines
@@ -129,6 +130,10 @@ void clean_up_exit (int ret) {
ssl_helper_pid(0, 0); /* killall */
}
+ if (avahi) {
+ avahi_cleanup();
+ }
+
#ifdef MACOSX
if (client_connect_file) {
if (strstr(client_connect_file, "/tmp/x11vnc-macosx-channel.")
OpenPOWER on IntegriCloud