summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_elf.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-02-28 06:36:45 +0000
committerps <ps@FreeBSD.org>2000-02-28 06:36:45 +0000
commit855985c95f6c5d5dc57c05416a7f40c27c941cbf (patch)
tree7df5a8caeb13aa97a2df9f3188eb06f483b54841 /sys/kern/imgact_elf.c
parentc3800346ab46195181630945b2f40e1fee7853d0 (diff)
downloadFreeBSD-src-855985c95f6c5d5dc57c05416a7f40c27c941cbf.zip
FreeBSD-src-855985c95f6c5d5dc57c05416a7f40c27c941cbf.tar.gz
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
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r--sys/kern/imgact_elf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 8729888..6a0e0ef 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -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;
OpenPOWER on IntegriCloud