[dovecot-cvs] dovecot/src/pop3 client.c,1.10,1.11

cras at procontrol.fi cras at procontrol.fi
Tue Jul 15 22:26:45 EEST 2003


Update of /home/cvs/dovecot/src/pop3
In directory danu:/tmp/cvs-serv10641/src/pop3

Modified Files:
	client.c 
Log Message:
index_mmap_invalidate = yes now invalidate memory maps before accessing
them. Setting this on should fix some problems with OpenBSD. It should also
make it possible to use index files over NFS as long as lock daemon is used.
It might be such a good idea however.



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- client.c	23 May 2003 14:40:50 -0000	1.10
+++ client.c	15 Jul 2003 18:26:43 -0000	1.11
@@ -106,6 +106,7 @@
 struct client *client_create(int hin, int hout, struct mail_storage *storage)
 {
 	struct client *client;
+	enum mailbox_open_flags flags;
 
 	client = i_new(struct client, 1);
 	client->input = i_stream_create_file(hin, default_pool,
@@ -122,7 +123,9 @@
 
 	storage->set_callbacks(storage, &mail_storage_callbacks, client);
 
-	client->mailbox = storage->open_mailbox(storage, "INBOX", FALSE, FALSE);
+	flags = getenv("MMAP_INVALIDATE") != NULL ?
+		MAILBOX_OPEN_MMAP_INVALIDATE : 0;
+	client->mailbox = storage->open_mailbox(storage, "INBOX", flags);
 	if (client->mailbox == NULL) {
 		client_send_line(client, "-ERR No INBOX for user.");
 		return NULL;



More information about the dovecot-cvs mailing list