Notification mechanism when truncate a mapped file
I am trying to make some change to the source code of sqlite as I want to map
a file using unixMapfile(). But I guess there will be a SIGBUS crash when
one process truncate the file and do not notify other processes who want to
access the file later.
So I am wondering if there is any appropriate mechanism in sqlite to notify
Or, in another way, is it OK to update the mmapSize of file when I catch the
signal SIGBUS? As I guess I can use sigsetjmp() and siglongjmp() to restore