[GRASS-SVN] r74467 - grass/trunk/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 5 12:58:09 PDT 2019
Author: mmetz
Date: 2019-05-05 12:58:09 -0700 (Sun, 05 May 2019)
New Revision: 74467
Modified:
grass/trunk/lib/raster/close.c
Log:
libraster: +comment for alternative to fsync on MS Windows
Modified: grass/trunk/lib/raster/close.c
===================================================================
--- grass/trunk/lib/raster/close.c 2019-05-05 19:36:19 UTC (rev 74466)
+++ grass/trunk/lib/raster/close.c 2019-05-05 19:58:09 UTC (rev 74467)
@@ -56,6 +56,9 @@
G_warning(_("Unable to flush file %s for raster map %s: %s"),
element, name, strerror(errno));
}
+ /* for MS Windows, try fdopen(int, char *) + fflush(FILE *) + fclose(FILE *)
+ * flcose() closes the underlying file descriptor, thus no need to
+ * call close(fd) afterwards */
#endif
if (close(fd)) {
G_warning(_("Unable to close file %s for raster map %s: %s"),
More information about the grass-commit
mailing list