diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-14 11:12:16 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-14 11:12:16 +0000 |
commit | ec15202872393424c4c43eac6fbada08d1f16dba (patch) | |
tree | c77f7d5bb33775eb88142e8a95445a2db53b2a60 /src/testbed/gnunet-helper-testbed.c | |
parent | 4343a0ceaec1bc51c94039940c2415a8b681fb83 (diff) | |
download | gnunet-ec15202872393424c4c43eac6fbada08d1f16dba.tar.gz gnunet-ec15202872393424c4c43eac6fbada08d1f16dba.zip |
- use pipe control only on WINDOWS
Diffstat (limited to 'src/testbed/gnunet-helper-testbed.c')
-rw-r--r-- | src/testbed/gnunet-helper-testbed.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c index 5fbe2a8c9..55e73c109 100644 --- a/src/testbed/gnunet-helper-testbed.c +++ b/src/testbed/gnunet-helper-testbed.c | |||
@@ -52,6 +52,16 @@ | |||
52 | 52 | ||
53 | 53 | ||
54 | /** | 54 | /** |
55 | * We need pipe control only on WINDOWS | ||
56 | */ | ||
57 | #if WINDOWS | ||
58 | #define PIPE_CONTROL GNUNET_YES | ||
59 | #else | ||
60 | #define PIPE_CONTROL GNUNET_NO | ||
61 | #endif | ||
62 | |||
63 | |||
64 | /** | ||
55 | * Context for a single write on a chunk of memory | 65 | * Context for a single write on a chunk of memory |
56 | */ | 66 | */ |
57 | struct WriteContext | 67 | struct WriteContext |
@@ -321,7 +331,7 @@ tokenizer_cb (void *cls, void *client, | |||
321 | LOG_DEBUG ("Staring testbed with config: %s\n", config); | 331 | LOG_DEBUG ("Staring testbed with config: %s\n", config); |
322 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-testbed"); | 332 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-testbed"); |
323 | testbed = | 333 | testbed = |
324 | GNUNET_OS_start_process (GNUNET_YES, | 334 | GNUNET_OS_start_process (PIPE_CONTROL, |
325 | GNUNET_OS_INHERIT_STD_ERR /*verbose? */ , NULL, | 335 | GNUNET_OS_INHERIT_STD_ERR /*verbose? */ , NULL, |
326 | NULL, | 336 | NULL, |
327 | binary, | 337 | binary, |