summary refs log tree commit diff
path: root/src/dns/nm-dns-unbound.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
committerMichael Biebl <biebl@debian.org>2017-05-11 14:55:55 +0200
commitc333f062ddcba9b35330647bf6cbd0a07f2d786e (patch)
tree257c3a0c74c09f4ad2328eab5b932806405f0c1c /src/dns/nm-dns-unbound.c
parenta222e56e103f949b148a6942e385ccca2c26d9f3 (diff)
New upstream version 1.8.0 upstream/1.8.0
Diffstat (limited to 'src/dns/nm-dns-unbound.c')
-rw-r--r--src/dns/nm-dns-unbound.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dns/nm-dns-unbound.c b/src/dns/nm-dns-unbound.c
index 3659beac..6af4bad8 100644
--- a/src/dns/nm-dns-unbound.c
+++ b/src/dns/nm-dns-unbound.c
@@ -43,6 +43,9 @@ update (NMDnsPlugin *plugin,
         const NMGlobalDnsConfig *global_config,
         const char *hostname)
 {
+	char *argv[] = { DNSSEC_TRIGGER_SCRIPT, "--async", "--update", NULL };
+	int status;
+
 	/* TODO: We currently call a script installed with the dnssec-trigger
 	 * package that queries all information itself. Later, the dependency
 	 * on that package will be optional and the only hard dependency will
@@ -52,7 +55,9 @@ update (NMDnsPlugin *plugin,
 	 * without calling custom scripts. The dnssec-trigger functionality
 	 * may be eventually merged into NetworkManager.
 	 */
-	return nm_spawn_process (DNSSEC_TRIGGER_SCRIPT " --async --update", NULL) == 0;
+	if (!g_spawn_sync ("/", argv, NULL, 0, NULL, NULL, NULL, NULL, &status, NULL))
+		return FALSE;
+	return (status == 0);
 }
 
 static gboolean