[gvfs] dnssd: Use only one daemon process
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] dnssd: Use only one daemon process
- Date: Fri, 18 Nov 2016 15:24:58 +0000 (UTC)
commit 28e06fb0a88da987aa91becc360d4b347c19248a
Author: Ondrej Holy <oholy redhat com>
Date: Thu Oct 13 11:40:02 2016 +0200
dnssd: Use only one daemon process
The dnssd backend was designed to run under one common daemon
process, however, new daemon is always spawn for each host
(i.e. backend) currently. Set common dbus mountpoint in order
to use one daemon process for all backends.
https://bugzilla.gnome.org/show_bug.cgi?id=631023
daemon/Makefile.am | 1 +
daemon/dns-sd.mount.in | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index e458e5c..79c622f 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -396,6 +396,7 @@ gvfsd_dnssd_SOURCES = \
gvfsd_dnssd_CPPFLAGS = \
$(flags) \
-DBACKEND_HEADER=gvfsbackenddnssd.h \
+ -DMOUNTABLE_DBUS_NAME=org.gtk.vfs.mountpoint_dnssd \
-DDEFAULT_BACKEND_TYPE=dns-sd \
-DMAX_JOB_THREADS=1 \
$(AVAHI_CFLAGS) \
diff --git a/daemon/dns-sd.mount.in b/daemon/dns-sd.mount.in
index 1224ae6..af09ca9 100644
--- a/daemon/dns-sd.mount.in
+++ b/daemon/dns-sd.mount.in
@@ -2,3 +2,4 @@
Type=dns-sd
Exec=@libexecdir@/gvfsd-dnssd
AutoMount=true
+DBusName=org.gtk.vfs.mountpoint_dnssd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]