aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_api.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-11-29 10:25:47 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-11-29 10:25:47 +0000
commitd5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3 (patch)
treea9afdf6ba9fcc2051a5043b061ea9dc86779fb9f /src/arm/arm_api.c
parentb0c50f22c52535650a7288c32a3ae3ed6336c32f (diff)
downloadgnunet-d5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3.tar.gz
gnunet-d5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3.zip
- move do_start_process to util/
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r--src/arm/arm_api.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index d27b6b780..7e6ce1870 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -737,9 +737,6 @@ control_message_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *t
737} 737}
738 738
739 739
740#include "do_start_process.c"
741
742
743/** 740/**
744 * A client specifically requested starting of ARM itself. 741 * A client specifically requested starting of ARM itself.
745 * This function is called with information about whether 742 * This function is called with information about whether
@@ -832,26 +829,27 @@ arm_service_report (void *cls,
832 /* Means we are ONLY running locally */ 829 /* Means we are ONLY running locally */
833 /* we're clearly running a test, don't daemonize */ 830 /* we're clearly running a test, don't daemonize */
834 if (NULL == config) 831 if (NULL == config)
835 proc = do_start_process (GNUNET_NO, cm->std_inheritance, 832 proc = GNUNET_OS_start_process_s (GNUNET_NO, cm->std_inheritance,
836 NULL, loprefix, quotedbinary, 833 NULL, loprefix, quotedbinary,
837 /* no daemonization! */ 834 /* no daemonization! */
838 lopostfix, NULL); 835 lopostfix, NULL);
839 else 836 else
840 proc = do_start_process (GNUNET_NO, cm->std_inheritance, 837 proc = GNUNET_OS_start_process_s (GNUNET_NO, cm->std_inheritance,
841 NULL, loprefix, quotedbinary, "-c", config, 838 NULL, loprefix, quotedbinary, "-c", config,
842 /* no daemonization! */ 839 /* no daemonization! */
843 lopostfix, NULL); 840 lopostfix, NULL);
844 } 841 }
845 else 842 else
846 { 843 {
847 if (NULL == config) 844 if (NULL == config)
848 proc = do_start_process (GNUNET_NO, cm->std_inheritance, 845 proc = GNUNET_OS_start_process_s (GNUNET_NO, cm->std_inheritance,
849 NULL, loprefix, quotedbinary, 846 NULL, loprefix, quotedbinary,
850 "-d", lopostfix, NULL); 847 "-d", lopostfix, NULL);
851 else 848 else
852 proc = do_start_process (GNUNET_NO, cm->std_inheritance, 849 proc = GNUNET_OS_start_process_s (GNUNET_NO, cm->std_inheritance,
853 NULL, loprefix, quotedbinary, "-c", config, 850 NULL, loprefix, quotedbinary, "-c",
854 "-d", lopostfix, NULL); 851 config,
852 "-d", lopostfix, NULL);
855 } 853 }
856 GNUNET_free (binary); 854 GNUNET_free (binary);
857 GNUNET_free (quotedbinary); 855 GNUNET_free (quotedbinary);