how do exit and _exit affect mmapped memory?
Godmar Back
godmar@gmail.com
Mon Sep 10 00:15:00 GMT 2012
In the libc code base? Nowhere. The kernel does this.
On Sun, Sep 9, 2012 at 6:04 PM, Dmitry Goncharov
<dgoncharov@users.sf.net> wrote:
> On Sun, Sep 09, 2012 at 05:24:33PM +0200, Ángel González wrote:
>> 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()
>>
> Thanks, folks.
> Do you, by any chance, know where in the source tree the code which flushes
> these pages can be found?
>
> regards, Dmitry
More information about the Libc-help
mailing list