]> git.ipfire.org Git - thirdparty/sqlite.git/commit
When available, use posix_fallocate() rather than ftruncate() to allocate
authordrh <drh@noemail.net>
Tue, 13 Nov 2012 10:54:12 +0000 (10:54 +0000)
committerdrh <drh@noemail.net>
Tue, 13 Nov 2012 10:54:12 +0000 (10:54 +0000)
commit0fbb50ee153e654b24c44612056442b377b4763a
tree42fbc4d98cbbf437e45a73908992314affe119a4
parentb43081675d225ef7c5dfbab3adfbeb6c9b509ed2
When available, use posix_fallocate() rather than ftruncate() to allocate
space for mmap()ed -shm files, since posix_fallocate() gives an error if
no disk space is available whereas ftruncate() is silent and leaves the system
vulnerable to a SIGBUS upon first write to the mmap()ed region.
Ticket [5eaa61ea1881040b17449ca043b6f8fd9ca55dc3]

FossilOrigin-Name: 356259617cfad04492a02912fdf781f54a2b4494
manifest
manifest.uuid
src/os_unix.c
test/wal9.test