-cleaning up client api to test for service availability
[oweals/gnunet.git] / src / arm / do_start_process.c
index 0687fa3459d997fea864cc7c003ff3722f421642..95ec74405e92e857f6cd82289f1a9ae6ffa2775a 100644 (file)
@@ -18,6 +18,8 @@
      Boston, MA 02111-1307, USA.
 */
 
+#include "gnunet_os_lib.h"
+
 /**
  * Actually start a process.  All of the arguments given to this
  * function are strings that are used for the "argv" array.  However,
@@ -119,13 +121,12 @@ do_start_process (int pipe_control, unsigned int std_inheritance,
 /* *INDENT-ON* */
   va_end (ap);
   argv[argv_size] = NULL;
-  binary_path = GNUNET_OS_get_libexec_binary_path (argv[0]);
+  binary_path = argv[0];
   proc = GNUNET_OS_start_process_v (pipe_control, std_inheritance, lsocks, 
                                    binary_path, argv);
   while (argv_size > 0)
     GNUNET_free (argv[--argv_size]);
   GNUNET_free (argv);
-  GNUNET_free (binary_path);
   return proc;
 }