aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_arm_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-09 19:04:19 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-09 19:04:19 +0000
commit8f9464256fc06a884bf589b4004262a0549d11b3 (patch)
treea088b8acbebdefe2acf0b41cfed4418830275b78 /src/include/gnunet_arm_service.h
parent817ee37a75fb8eb5887023d1a5152cb528ee2d5a (diff)
downloadgnunet-8f9464256fc06a884bf589b4004262a0549d11b3.tar.gz
gnunet-8f9464256fc06a884bf589b4004262a0549d11b3.zip
-LRN: Another take on std descriptor inheritance
Now descriptors are not inherited by default, you have to pass a set of flags to make it so. When pipes are given, flags have no effect. gnunet-arm now has two options to block stdout and stderr from being passed to gnunet-service-arm
Diffstat (limited to 'src/include/gnunet_arm_service.h')
-rw-r--r--src/include/gnunet_arm_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h
index 116bfc5b4..0aa916bd4 100644
--- a/src/include/gnunet_arm_service.h
+++ b/src/include/gnunet_arm_service.h
@@ -37,6 +37,7 @@ extern "C"
37 37
38#include "gnunet_configuration_lib.h" 38#include "gnunet_configuration_lib.h"
39#include "gnunet_scheduler_lib.h" 39#include "gnunet_scheduler_lib.h"
40#include "gnunet_os_lib.h"
40#include "gnunet_time_lib.h" 41#include "gnunet_time_lib.h"
41 42
42/** 43/**
@@ -169,12 +170,14 @@ GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h);
169 * 170 *
170 * @param h handle to ARM 171 * @param h handle to ARM
171 * @param service_name name of the service 172 * @param service_name name of the service
173 * @param std_inheritance flags controlling std descriptors inheritance
172 * @param timeout how long to wait before failing for good 174 * @param timeout how long to wait before failing for good
173 * @param cb callback to invoke when service is ready 175 * @param cb callback to invoke when service is ready
174 * @param cb_cls closure for callback 176 * @param cb_cls closure for callback
175 */ 177 */
176void 178void
177GNUNET_ARM_start_service (struct GNUNET_ARM_Handle *h, const char *service_name, 179GNUNET_ARM_start_service (struct GNUNET_ARM_Handle *h, const char *service_name,
180 enum GNUNET_OS_InheritStdioFlags std_inheritance,
178 struct GNUNET_TIME_Relative timeout, 181 struct GNUNET_TIME_Relative timeout,
179 GNUNET_ARM_Callback cb, void *cb_cls); 182 GNUNET_ARM_Callback cb, void *cb_cls);
180 183