aboutsummaryrefslogtreecommitdiff
path: root/src/exit/gnunet-helper-exit.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/exit/gnunet-helper-exit.c
parent8154c9edf0d39e8fec6f199115b02e84e49bba0b (diff)
downloadgnunet-e0b6f7dc5c6b9e4bcfc8bfe30b91bc1d859755f3.tar.gz
gnunet-e0b6f7dc5c6b9e4bcfc8bfe30b91bc1d859755f3.zip
-fix getting output from sysctl into service-helper interactions
Diffstat (limited to 'src/exit/gnunet-helper-exit.c')
-rw-r--r--src/exit/gnunet-helper-exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c
index 57944cf61..5a9be473c 100644
--- a/src/exit/gnunet-helper-exit.c
+++ b/src/exit/gnunet-helper-exit.c
@@ -110,6 +110,10 @@ fork_and_exec (const char *file,
110 if (0 == pid) 110 if (0 == pid)
111 { 111 {
112 /* we are the child process */ 112 /* we are the child process */
113 /* close stdin/stdout to not cause interference
114 with the helper's main protocol! */
115 (void) close (0);
116 (void) close (1);
113 (void) execv (file, cmd); 117 (void) execv (file, cmd);
114 /* can only get here on error */ 118 /* can only get here on error */
115 fprintf (stderr, 119 fprintf (stderr,