aboutsummaryrefslogtreecommitdiff
path: root/src/dns/gnunet-helper-dns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-20 17:47:07 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-20 17:47:07 +0000
commite0b6f7dc5c6b9e4bcfc8bfe30b91bc1d859755f3 (patch)
tree24e4853ad888395e326c99ca02013c8428704985 /src/dns/gnunet-helper-dns.c
parent8154c9edf0d39e8fec6f199115b02e84e49bba0b (diff)
downloadgnunet-e0b6f7dc5c6b9e4bcfc8bfe30b91bc1d859755f3.tar.gz
gnunet-e0b6f7dc5c6b9e4bcfc8bfe30b91bc1d859755f3.zip
-fix getting output from sysctl into service-helper interactions
Diffstat (limited to 'src/dns/gnunet-helper-dns.c')
-rw-r--r--src/dns/gnunet-helper-dns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dns/gnunet-helper-dns.c b/src/dns/gnunet-helper-dns.c
index 73536c252..22c6ef359 100644
--- a/src/dns/gnunet-helper-dns.c
+++ b/src/dns/gnunet-helper-dns.c
@@ -173,6 +173,10 @@ fork_and_exec (const char *file,
173 if (0 == pid) 173 if (0 == pid)
174 { 174 {
175 /* we are the child process */ 175 /* we are the child process */
176 /* close stdin/stdout to not cause interference
177 with the helper's main protocol! */
178 (void) close (0);
179 (void) close (1);
176 (void) execv (file, cmd); 180 (void) execv (file, cmd);
177 /* can only get here on error */ 181 /* can only get here on error */
178 fprintf (stderr, 182 fprintf (stderr,