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:
parent
9730a5daab
commit
77ac690c97
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue