Use pipe control for helper processes
authorLRN <lrn1986@gmail.com>
Fri, 27 Jul 2012 10:25:50 +0000 (10:25 +0000)
committerLRN <lrn1986@gmail.com>
Fri, 27 Jul 2012 10:25:50 +0000 (10:25 +0000)
This fixes testbed service leak in testbed tests.
Either this, or NOT using helper API for testbed helper.

src/util/helper.c

index 82b94aa2fb472be465c0aadacf4ab96113052f73..64b014994874502bf4eb790d916ef356c733c33b 100644 (file)
@@ -341,7 +341,7 @@ start_helper (struct GNUNET_HELPER_Handle *h)
   h->fh_to_helper =
       GNUNET_DISK_pipe_handle (h->helper_in, GNUNET_DISK_PIPE_END_WRITE);
   h->helper_proc =
-      GNUNET_OS_start_process_vap (GNUNET_NO, GNUNET_OS_INHERIT_STD_ERR, 
+      GNUNET_OS_start_process_vap (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, 
                                   h->helper_in, h->helper_out,
                                   h->binary_name,
                                   h->binary_argv);