Changeset: 968e785bdd45 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=968e785bdd45 Modified Files: gdk/gdk_imprints.c Branch: Oct2014 Log Message:
Don't ignore return value of write function. diffs (13 lines): diff --git a/gdk/gdk_imprints.c b/gdk/gdk_imprints.c --- a/gdk/gdk_imprints.c +++ b/gdk/gdk_imprints.c @@ -769,7 +769,8 @@ BATimprints(BAT *b) (fd = GDKfdlocate(imprints->imprints->farmid, nme, "rb+", b->batCacheid > 0 ? "timprints" : "himprints")) >= 0) { ((size_t *) imprints->imprints->base)[0] |= (size_t) 1 << 16; - write(fd, imprints->imprints->base, sizeof(size_t)); + if (write(fd, imprints->imprints->base, sizeof(size_t)) < 0) + perror("write imprints"); #if defined(NATIVE_WIN32) _commit(fd); #elif defined(HAVE_FDATASYNC) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list