safe stdin/stdout inheritance under windows
authorNathan S. Evans <evans@in.tum.de>
Wed, 15 Sep 2010 10:50:33 +0000 (10:50 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 15 Sep 2010 10:50:33 +0000 (10:50 +0000)
src/transport/plugin_transport_tcp.c
src/transport/plugin_transport_udp.c

index 35103e58715b4df51ea6a596510e0bc64eeba3b6..91ba644ec16ce8b419266b1ce300e236dc555cdb 100644 (file)
@@ -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;
 
index cc3dfcdf4c3f11dbacfcdd6da4146d25915d1223..3f2b83b05aabd8f6b4842844e69959f329022684 100644 (file)
@@ -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