diff options
author | ps <ps@FreeBSD.org> | 2000-02-28 06:36:45 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-02-28 06:36:45 +0000 |
commit | 855985c95f6c5d5dc57c05416a7f40c27c941cbf (patch) | |
tree | 7df5a8caeb13aa97a2df9f3188eb06f483b54841 /sys | |
parent | c3800346ab46195181630945b2f40e1fee7853d0 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/kern/imgact_elf.c | 5 |
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; |