diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-27 11:00:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-27 11:00:10 +0000 |
commit | 0238db34853380280ccf164918ebbb28260f4629 (patch) | |
tree | 2c47ddbbfa27e7a0479d5c12e78d77342780a4bd /src/nat | |
parent | dc3ae8f36ec69ca2a96a93feda501682ff168320 (diff) | |
download | gnunet-0238db34853380280ccf164918ebbb28260f4629.tar.gz gnunet-0238db34853380280ccf164918ebbb28260f4629.zip |
enabling use of pipes for signal communication also on UNIX to enable future integration with Java services
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/nat.c | 5 | ||||
-rw-r--r-- | src/nat/nat_mini.c | 2 | ||||
-rw-r--r-- | src/nat/test_nat_test.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 02ff7547b..744583f3d 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -843,7 +843,7 @@ start_gnunet_nat_server (struct GNUNET_NAT_Handle *h) | |||
843 | #endif | 843 | #endif |
844 | /* Start the server process */ | 844 | /* Start the server process */ |
845 | h->server_proc = | 845 | h->server_proc = |
846 | GNUNET_OS_start_process (NULL, h->server_stdout, | 846 | GNUNET_OS_start_process (GNUNET_NO, NULL, h->server_stdout, |
847 | "gnunet-helper-nat-server", | 847 | "gnunet-helper-nat-server", |
848 | "gnunet-helper-nat-server", | 848 | "gnunet-helper-nat-server", |
849 | h->internal_address, NULL); | 849 | h->internal_address, NULL); |
@@ -1342,7 +1342,8 @@ GNUNET_NAT_run_client (struct GNUNET_NAT_Handle *h, | |||
1342 | inet4, (unsigned int) h->adv_port); | 1342 | inet4, (unsigned int) h->adv_port); |
1343 | #endif | 1343 | #endif |
1344 | proc = | 1344 | proc = |
1345 | GNUNET_OS_start_process (NULL, NULL, "gnunet-helper-nat-client", | 1345 | GNUNET_OS_start_process (GNUNET_NO, |
1346 | NULL, NULL, "gnunet-helper-nat-client", | ||
1346 | "gnunet-helper-nat-client", h->internal_address, | 1347 | "gnunet-helper-nat-client", h->internal_address, |
1347 | inet4, port_as_string, NULL); | 1348 | inet4, port_as_string, NULL); |
1348 | if (NULL == proc) | 1349 | if (NULL == proc) |
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index 6c48f28fe..830fdfd50 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c | |||
@@ -176,7 +176,7 @@ GNUNET_NAT_mini_get_external_ipv4 (struct GNUNET_TIME_Relative timeout, | |||
176 | return NULL; | 176 | return NULL; |
177 | } | 177 | } |
178 | eh->eip = | 178 | eh->eip = |
179 | GNUNET_OS_start_process (NULL, eh->opipe, "external-ip", "external-ip", | 179 | GNUNET_OS_start_process (GNUNET_NO, NULL, eh->opipe, "external-ip", "external-ip", |
180 | NULL); | 180 | NULL); |
181 | if (NULL == eh->eip) | 181 | if (NULL == eh->eip) |
182 | { | 182 | { |
diff --git a/src/nat/test_nat_test.c b/src/nat/test_nat_test.c index 2b9ef0f7c..64617880a 100644 --- a/src/nat/test_nat_test.c +++ b/src/nat/test_nat_test.c | |||
@@ -118,7 +118,7 @@ main (int argc, char *const argv[]) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | gns = | 120 | gns = |
121 | GNUNET_OS_start_process (NULL, NULL, "gnunet-nat-server", | 121 | GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-nat-server", |
122 | "gnunet-nat-server", | 122 | "gnunet-nat-server", |
123 | #if VERBOSE | 123 | #if VERBOSE |
124 | "-L", "DEBUG", | 124 | "-L", "DEBUG", |