From 420f4668db01818fdda4222d36d923673de557f9 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 17 Jun 2007 14:27:31 +0000 Subject: [PATCH] Update description of MALLOC_CHECK_ to include description for value 3. (From downstream Fedora patch.) --- man3/malloc.3 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/man3/malloc.3 b/man3/malloc.3 index 86d79afdc2..1f368457bb 100644 --- a/man3/malloc.3 +++ b/man3/malloc.3 @@ -24,7 +24,7 @@ .\" Clarification concerning realloc, iwj10@cus.cam.ac.uk (Ian Jackson), 950701 .\" Documented MALLOC_CHECK_, Wolfram Gloger (wmglo@dent.med.uni-muenchen.de) .\" -.TH MALLOC 3 1993-04-04 "GNU" "Linux Programmer's Manual" +.TH MALLOC 3 2007-06-25 "GNU" "Linux Programmer's Manual" .SH NAME calloc, malloc, free, realloc \- Allocate and free dynamic memory .SH SYNOPSIS @@ -164,11 +164,15 @@ memory leaks can result. If .BR MALLOC_CHECK_ is set to 0, any detected heap corruption is silently ignored; -if set to 1, a diagnostic is printed on \fIstderr\fp; +if set to 1, a diagnostic message is printed on \fIstderr\fP; if set to 2, .BR abort (3) -is called immediately. -This can be useful because otherwise +is called immediately; +if set to 3, a diagnostic message is printed on \fIstderr\fP +and the program is aborted. +Using a non-zero +.B MALLOC_CHECK_ +value can be useful because otherwise a crash may happen much later, and the true cause for the problem is then very hard to track down. .SH BUGS -- 2.39.5