aboutsummaryrefslogtreecommitdiff
path: root/src/dns/gnunet-helper-dns.c
diff options
context:
space:
mode:
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,