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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 27 07:26:44 EST 2012


Author: glynn
Date: 2012-01-27 04:26:44 -0800 (Fri, 27 Jan 2012)
New Revision: 50497

Modified:
   grass/trunk/lib/gis/spawn.c
Log:
SF_CLOSE_DESCRIPTOR should actually close the descriptor


Modified: grass/trunk/lib/gis/spawn.c
===================================================================
--- grass/trunk/lib/gis/spawn.c	2012-01-27 12:26:00 UTC (rev 50496)
+++ grass/trunk/lib/gis/spawn.c	2012-01-27 12:26:44 UTC (rev 50497)
@@ -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