how to delay cleanup from exit.c
Carlos O'Donell
carlos@codesourcery.com
Fri Apr 4 15:36:00 GMT 2008
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
More information about the Libc-alpha
mailing list