mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue