[GRASS-SVN] r42667 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 27 16:34:30 EDT 2010


Author: martinl
Date: 2010-06-27 20:34:30 +0000 (Sun, 27 Jun 2010)
New Revision: 42667

Modified:
   grass/branches/develbranch_6/lib/gis/spawn.c
Log:
glynn: Don't warn about not close()ing descriptors other than std{in,out,err}
on Windows (merge r40905 from trunk)


Modified: grass/branches/develbranch_6/lib/gis/spawn.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/spawn.c	2010-06-27 19:21:57 UTC (rev 42666)
+++ grass/branches/develbranch_6/lib/gis/spawn.c	2010-06-27 20:34:30 UTC (rev 42667)
@@ -407,7 +407,8 @@
 	struct redirect *r = &redirects[i];
 
 	if (r->dst_fd < 0 || r->dst_fd > 2) {
-	    G_warning(_("G_spawn: unable to redirect descriptor %d"), r->dst_fd);
+	    if (r->file || r->src_fd >= 0)
+		G_warning(_("G_spawn: unable to redirect descriptor %d"), r->dst_fd);
 	    continue;
 	}
 



More information about the grass-commit mailing list