From: Nathan S. Evans Date: Wed, 15 Sep 2010 10:50:33 +0000 (+0000) Subject: safe stdin/stdout inheritance under windows X-Git-Tag: initial-import-from-subversion-38251~20326 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f4666e673e8370225069aa8214e23a7935c00dd2;p=oweals%2Fgnunet.git safe stdin/stdout inheritance under windows --- 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