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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 28 15:44:31 EST 2012


Author: hamish
Date: 2012-01-28 12:44:30 -0800 (Sat, 28 Jan 2012)
New Revision: 50529

Modified:
   grass/branches/develbranch_6/lib/gis/spawn.c
Log:
Glynn: SF_CLOSE_DESCRIPTOR should actually close the descriptor (merge r50497 from trunk in aid of #1276)

Modified: grass/branches/develbranch_6/lib/gis/spawn.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/spawn.c	2012-01-28 17:51:18 UTC (rev 50528)
+++ grass/branches/develbranch_6/lib/gis/spawn.c	2012-01-28 20:44:30 UTC (rev 50529)
@@ -433,8 +433,10 @@
 	else if (r->src_fd >= 0) {
 	    handles[r->dst_fd] = get_handle(r->src_fd);
 	}
-	else
+	else {
 	    handles[r->dst_fd] = INVALID_HANDLE_VALUE;
+	    close(r->dst_fd);
+	}
     }
 }
 



More information about the grass-commit mailing list