This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how do exit and _exit affect mmapped memory?


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]