This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: how to delay cleanup from exit.c
- From: Carlos O'Donell <carlos at codesourcery dot com>
- To: Gian Lorenzo Meocci <glmeocci at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 04 Apr 2008 10:34:06 -0400
- Subject: Re: how to delay cleanup from exit.c
- References: <8d94e9280804020153r2fdcf5bdp13aa172a39556484@mail.gmail.com>
Gian Lorenzo Meocci wrote:
Hi all,
How can I disable or delay a cleanup from exit function in stdlib/exit.c?
I have allocate some dynamic memory with malloc in gmon.c and I want
use them in mcleanup.
It may not be possible.
A portable implementation could use mmap to allocate memory, and munmap
later to remove the mapping (see _POSIX_MAPPED_FILES).
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@codesourcery.com
(650) 331-3385 x716