Changeset: 571ad3c1e1d0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=571ad3c1e1d0
Modified Files:
gdk/gdk_posix.c
Branch: Jul2015
Log Message:
Failure to unmap doesn't need to be propagated.
diffs (16 lines):
diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -387,7 +387,11 @@ MT_mremap(const char *path, int mode, vo
if (munmap((char *) old_address + *new_size,
old_size - *new_size) < 0) {
fprintf(stderr, "= %s:%d:
MT_mremap(%s,"PTRFMT","SZFMT","SZFMT"): munmap() failed\n", __FILE__, __LINE__,
path?path:"NULL", PTRFMTCAST old_address, old_size, *new_size);
- return NULL;
+ /* even though the system call failed, we
+ * don't need to propagate the error up: the
+ * address should still work in the same way
+ * as it did before */
+ return old_address;
}
if (path && truncate(path, *new_size) < 0)
fprintf(stderr, "#MT_mremap(%s): truncate failed\n",
path);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list