Update a comment in elf_coredump to reflect that if you madvise

with MADV_NOCORE, its address space is also excluded from a core
file.

Pointed out by:	alc
This commit is contained in:
Paul Saab 2000-02-28 06:36:45 +00:00
parent 9730a5daab
commit 77ac690c97
1 changed files with 3 additions and 2 deletions

View File

@ -817,8 +817,9 @@ each_writable_segment(p, func, closure)
continue;
/*
** Dont include mmapped data in the coredump if MAP_NOCORE
** is set in mmap(2).
** Dont include memory segment in the coredump if
** MAP_NOCORE is set in mmap(2) or MADV_NOCORE in
** madvise(2).
*/
if (entry->eflags & MAP_ENTRY_NOCOREDUMP)
continue;