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?


On 09/09/12 06:32, Godmar Back wrote:
> It'll be saved in all cases, no matter what the process does or how it exits.
>
>  - Godmar
Assuming the OS doesn't crash after that before it updates the file on
disk :)

Which is highly unlikely, if you need to protect against that
eventuality, call msync()


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