From dd828e135c3070ccba4a5cd905c0ffcad221edf6 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Sun, 30 Mar 2003 18:16:51 +0200
Subject: [PATCH] Added a note about the changed semantics of the object exit
 callback when DO_PIKE_CLEANUP is used.

Rev: src/program.c:1.494
---
 src/program.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/program.c b/src/program.c
index 10dd822884..17a131c4c4 100644
--- a/src/program.c
+++ b/src/program.c
@@ -2,11 +2,11 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: program.c,v 1.493 2003/03/30 00:31:06 mast Exp $
+|| $Id: program.c,v 1.494 2003/03/30 16:16:51 mast Exp $
 */
 
 #include "global.h"
-RCSID("$Id: program.c,v 1.493 2003/03/30 00:31:06 mast Exp $");
+RCSID("$Id: program.c,v 1.494 2003/03/30 16:16:51 mast Exp $");
 #include "program.h"
 #include "object.h"
 #include "dynamic_buffer.h"
@@ -2895,6 +2895,12 @@ PMOD_EXPORT void set_init_callback(void (*init)(struct object *))
 /*
  * set a callback used to de-initialize clones of this program
  * the exit function is called at destruct
+ *
+ * Note: If DO_PIKE_CLEANUP is defined (typically when compiling with
+ * --with-dmalloc) this callback can be called after the module has
+ * exited. In that case all it should do is free references in the
+ * object.
+ *
  * This function is obsolete, use pike_set_prog_event_callback instead.
  */
 PMOD_EXPORT void set_exit_callback(void (*exit)(struct object *))
-- 
GitLab