diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-14 23:18:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-14 23:18:06 +0000 |
commit | 91ab799c42b2496e65afd0c866811999d88119ed (patch) | |
tree | 2c31aa87ead94723c1d959a691b11811fc4589f8 /src/nat | |
parent | a72a1c6fc09216c5be7f5ee697ff55cf66907c80 (diff) | |
download | gnunet-91ab799c42b2496e65afd0c866811999d88119ed.tar.gz gnunet-91ab799c42b2496e65afd0c866811999d88119ed.zip |
LRN: enable more fine-grained control over blocking/non-blocking pipe operation
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/nat.c | 2 | ||||
-rw-r--r-- | src/nat/nat_mini.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 9f8fec9a0..02ff7547b 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -835,7 +835,7 @@ start_gnunet_nat_server (struct GNUNET_NAT_Handle *h) | |||
835 | (h->internal_address != NULL) && | 835 | (h->internal_address != NULL) && |
836 | (NULL != | 836 | (NULL != |
837 | (h->server_stdout = | 837 | (h->server_stdout = |
838 | GNUNET_DISK_pipe (GNUNET_YES, GNUNET_NO, GNUNET_YES)))) | 838 | GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES)))) |
839 | { | 839 | { |
840 | #if DEBUG_NAT | 840 | #if DEBUG_NAT |
841 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Starting `%s' at `%s'\n", | 841 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Starting `%s' at `%s'\n", |
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index 5a83d7a4f..6c48f28fe 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c | |||
@@ -169,7 +169,7 @@ GNUNET_NAT_mini_get_external_ipv4 (struct GNUNET_TIME_Relative timeout, | |||
169 | eh = GNUNET_malloc (sizeof (struct GNUNET_NAT_ExternalHandle)); | 169 | eh = GNUNET_malloc (sizeof (struct GNUNET_NAT_ExternalHandle)); |
170 | eh->cb = cb; | 170 | eh->cb = cb; |
171 | eh->cb_cls = cb_cls; | 171 | eh->cb_cls = cb_cls; |
172 | eh->opipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_NO, GNUNET_YES); | 172 | eh->opipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES); |
173 | if (NULL == eh->opipe) | 173 | if (NULL == eh->opipe) |
174 | { | 174 | { |
175 | GNUNET_free (eh); | 175 | GNUNET_free (eh); |