diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-09-15 10:50:33 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-09-15 10:50:33 +0000 |
commit | f4666e673e8370225069aa8214e23a7935c00dd2 (patch) | |
tree | b6d161fe723616f9f2eeada463fb4ce6562e8363 /src | |
parent | d341c13bf19c549c8874f598c1b1f7c7ce7819f1 (diff) | |
download | gnunet-f4666e673e8370225069aa8214e23a7935c00dd2.tar.gz gnunet-f4666e673e8370225069aa8214e23a7935c00dd2.zip |
safe stdin/stdout inheritance under windows
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 35103e587..91ba644ec 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2192,7 +2192,7 @@ static int | |||
2192 | tcp_transport_start_nat_server(struct Plugin *plugin) | 2192 | tcp_transport_start_nat_server(struct Plugin *plugin) |
2193 | { | 2193 | { |
2194 | 2194 | ||
2195 | plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_YES, GNUNET_YES); | 2195 | plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES); |
2196 | if (plugin->server_stdout == NULL) | 2196 | if (plugin->server_stdout == NULL) |
2197 | return GNUNET_SYSERR; | 2197 | return GNUNET_SYSERR; |
2198 | 2198 | ||
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index cc3dfcdf4..3f2b83b05 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -1627,7 +1627,7 @@ udp_transport_server_start (void *cls) | |||
1627 | if (plugin->behind_nat == GNUNET_YES) | 1627 | if (plugin->behind_nat == GNUNET_YES) |
1628 | { | 1628 | { |
1629 | /* Pipe to read from started processes stdout (on read end) */ | 1629 | /* Pipe to read from started processes stdout (on read end) */ |
1630 | plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_YES, GNUNET_YES); | 1630 | plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES); |
1631 | if (plugin->server_stdout == NULL) | 1631 | if (plugin->server_stdout == NULL) |
1632 | return sockets_created; | 1632 | return sockets_created; |
1633 | #if DEBUG_UDP | 1633 | #if DEBUG_UDP |