[GRASS-SVN] r40905 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 9 23:19:35 EST 2010


Author: glynn
Date: 2010-02-09 23:19:35 -0500 (Tue, 09 Feb 2010)
New Revision: 40905

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


Modified: grass/trunk/lib/gis/spawn.c
===================================================================
--- grass/trunk/lib/gis/spawn.c	2010-02-10 04:18:26 UTC (rev 40904)
+++ grass/trunk/lib/gis/spawn.c	2010-02-10 04:19:35 UTC (rev 40905)
@@ -412,7 +412,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