a07ffc1aaa
on openbsd, related to pr/3291. bump PKGNAME
17 lines
623 B
Plaintext
17 lines
623 B
Plaintext
$OpenBSD: patch-src_lib-index_mail-tree_c,v 1.1 2003/07/23 06:03:01 jolan Exp $
|
|
--- src/lib-index/mail-tree.c.orig Wed Apr 23 12:07:51 2003
|
|
+++ src/lib-index/mail-tree.c Tue Jul 15 15:17:57 2003
|
|
@@ -131,6 +131,12 @@ static int mmap_verify(struct mail_tree
|
|
|
|
int _mail_tree_mmap_update(struct mail_tree *tree, int forced)
|
|
{
|
|
+ if (tree->index->mmap_invalidate && tree->mmap_base != NULL) {
|
|
+ if (msync(tree->mmap_base, tree->mmap_used_length,
|
|
+ MS_SYNC | MS_INVALIDATE) < 0)
|
|
+ return tree_set_syscall_error(tree, "msync()");
|
|
+ }
|
|
+
|
|
debug_mprotect(tree->mmap_base, tree->mmap_full_length,
|
|
tree->index);
|
|
|