From f4666e673e8370225069aa8214e23a7935c00dd2 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 15 Sep 2010 10:50:33 +0000 Subject: [PATCH] safe stdin/stdout inheritance under windows --- src/transport/plugin_transport_tcp.c | 2 +- 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 tcp_transport_start_nat_server(struct Plugin *plugin) { - plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_YES, GNUNET_YES); + plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES); if (plugin->server_stdout == NULL) return GNUNET_SYSERR; 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) if (plugin->behind_nat == GNUNET_YES) { /* Pipe to read from started processes stdout (on read end) */ - plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_YES, GNUNET_YES); + plugin->server_stdout = GNUNET_DISK_pipe(GNUNET_YES, GNUNET_NO, GNUNET_YES); if (plugin->server_stdout == NULL) return sockets_created; #if DEBUG_UDP -- 2.25.1