how do exit and _exit affect mmapped memory?

Godmar Back godmar@gmail.com
Sun Sep 9 04:33:00 GMT 2012


It'll be saved in all cases, no matter what the process does or how it exits.

 - Godmar

On Sat, Sep 8, 2012 at 11:12 PM, Dmitry Goncharov
<dgoncharov@users.sf.net> wrote:
>
> Good morning,
>
> A program uses glibc on linux. The program uses mmap with flag MAP_SHARED.
> The program never calls munmap or msync.
> Is there a guarantee that the contents of the mapped memory will be stored to
> the file when the program calls exit?
> Is there such a guarantee if the program calls _exit or is killed by a signal?
> Does calling munmap give such a guarantee?
> Thanks.
>
> regards, Dmitry
>



More information about the Libc-help mailing list