[dovecot-cvs] dovecot/src/lib ibuffer-mmap.c,1.6,1.7
cras at procontrol.fi
cras at procontrol.fi
Sun Oct 27 00:35:58 EEST 2002
- Previous message: [dovecot-cvs] dovecot/src/lib ibuffer.c,1.5,1.6
- Next message: [dovecot-cvs] dovecot/src/lib-index/maildir maildir-build.c,1.12,1.13 maildir-index.h,1.7,1.8 maildir-sync.c,1.13,1.14 maildir-update.c,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv5925
Modified Files:
ibuffer-mmap.c
Log Message:
Print error message if madvise() fails (it never should).
Index: ibuffer-mmap.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ibuffer-mmap.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ibuffer-mmap.c 26 Oct 2002 18:44:27 -0000 1.6
+++ ibuffer-mmap.c 26 Oct 2002 20:35:56 -0000 1.7
@@ -165,7 +165,8 @@
if (limit_size > buf->buffer_size)
limit_size = buf->buffer_size;
- (void)madvise(mbuf->mmap_base, limit_size, MADV_SEQUENTIAL);
+ if (madvise(mbuf->mmap_base, limit_size, MADV_SEQUENTIAL) < 0)
+ i_error("MmapIBuffer.madvise(): %m");
}
return io_buffer_set_mmaped_pos(buf);
- Previous message: [dovecot-cvs] dovecot/src/lib ibuffer.c,1.5,1.6
- Next message: [dovecot-cvs] dovecot/src/lib-index/maildir maildir-build.c,1.12,1.13 maildir-index.h,1.7,1.8 maildir-sync.c,1.13,1.14 maildir-update.c,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list