Changeset: 6df1c65d8cbd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6df1c65d8cbd
Modified Files:
        gdk/gdk_posix.c
Branch: default
Log Message:

Merge with Feb2013 branch.


diffs (13 lines):

diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -414,7 +414,8 @@ MT_mremap(const char *path, int mode, vo
                if (munmap((char *) old_address + new_size,
                           old_size - new_size) < 0)
                        return NULL;
-               truncate(path, (off_t) new_size);
+               if (truncate(path, (off_t) new_size) < 0)
+                       fprintf(stderr, "#MT_mremap(%s): truncate failed\n", 
path);
 #ifdef MMAP_DEBUG
                fprintf(stderr, "MT_mremap(%s,"PTRFMT","SZFMT","SZFMT") -> 
shrinking\n", path?path:"NULL", PTRFMTCAST old_address, old_size, new_size);
 #endif
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to