aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-09-15 10:50:33 +0000
committerNathan S. Evans <evans@in.tum.de>2010-09-15 10:50:33 +0000
commitf4666e673e8370225069aa8214e23a7935c00dd2 (patch)
treeb6d161fe723616f9f2eeada463fb4ce6562e8363 /src
parentd341c13bf19c549c8874f598c1b1f7c7ce7819f1 (diff)
downloadgnunet-f4666e673e8370225069aa8214e23a7935c00dd2.tar.gz
gnunet-f4666e673e8370225069aa8214e23a7935c00dd2.zip
safe stdin/stdout inheritance under windows
Diffstat (limited to 'src')
-rw-r--r--src/transport/plugin_transport_tcp.c2
-rw-r--r--src/transport/plugin_transport_udp.c2
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
2192tcp_transport_start_nat_server(struct Plugin *plugin) 2192tcp_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