2006-10-01 [colin] 2.5.2cvs31
* src/msgcache.c Don't ftruncate when not using mmap
This commit is contained in:
parent
9208998244
commit
2bfb027f1b
4 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-10-01 [colin] 2.5.2cvs31
|
||||
|
||||
* src/msgcache.c
|
||||
Don't ftruncate when not using mmap
|
||||
|
||||
2006-09-30 [colin] 2.5.2cvs30
|
||||
|
||||
* src/main.c
|
||||
|
|
|
@ -1944,3 +1944,4 @@
|
|||
( cvs diff -u -r 1.213.2.116 -r 1.213.2.117 src/folder.c; cvs diff -u -r 1.115.2.106 -r 1.115.2.107 src/main.c; ) > 2.5.2cvs28.patchset
|
||||
( cvs diff -u -r 1.213.2.117 -r 1.213.2.118 src/folder.c; cvs diff -u -r 1.79.2.43 -r 1.79.2.44 src/mh.c; ) > 2.5.2cvs29.patchset
|
||||
( cvs diff -u -r 1.115.2.107 -r 1.115.2.108 src/main.c; ) > 2.5.2cvs30.patchset
|
||||
( cvs diff -u -r 1.16.2.41 -r 1.16.2.42 src/msgcache.c; ) > 2.5.2cvs31.patchset
|
||||
|
|
|
@ -11,7 +11,7 @@ MINOR_VERSION=5
|
|||
MICRO_VERSION=2
|
||||
INTERFACE_AGE=0
|
||||
BINARY_AGE=0
|
||||
EXTRA_VERSION=30
|
||||
EXTRA_VERSION=31
|
||||
EXTRA_RELEASE=
|
||||
EXTRA_GTK2_VERSION=
|
||||
|
||||
|
|
|
@ -1019,11 +1019,11 @@ gint msgcache_write(const gchar *cache_file, const gchar *mark_file, MsgCache *c
|
|||
g_hash_table_foreach(cache->msgnum_table, msgcache_write_mmap_func, (gpointer)&write_fps);
|
||||
munmap(cache_data, map_len);
|
||||
munmap(mark_data, map_len);
|
||||
ftruncate(fileno(write_fps.cache_fp), write_fps.cache_size);
|
||||
ftruncate(fileno(write_fps.mark_fp), write_fps.mark_size);
|
||||
} else {
|
||||
g_hash_table_foreach(cache->msgnum_table, msgcache_write_func, (gpointer)&write_fps);
|
||||
}
|
||||
ftruncate(fileno(write_fps.cache_fp), write_fps.cache_size);
|
||||
ftruncate(fileno(write_fps.mark_fp), write_fps.mark_size);
|
||||
fclose(write_fps.cache_fp);
|
||||
fclose(write_fps.mark_fp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue