From 77ac690c97ab18c1c4882a42ebeff370dbcac072 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Mon, 28 Feb 2000 06:36:45 +0000 Subject: [PATCH] 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 --- sys/kern/imgact_elf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 87298881525..6a0e0ef2053 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;