From 588a59b5051b88268d1a686c7c93264662f50b74 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 3 Jan 2002 05:26:57 +0000 Subject: Send back talloc allocation information when POOL_USAGE is received. (This used to be commit 7cb8e95f9332d4c278d2aac5416f963639609d5a) --- source3/lib/tallocmsg.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c index a0987aba77..fabc06fb93 100644 --- a/source3/lib/tallocmsg.c +++ b/source3/lib/tallocmsg.c @@ -1,6 +1,6 @@ /* samba -- Unix SMB/Netbios implementation. - Copyright (C) 2001 by Martin Pool + Copyright (C) 2001, 2002 by Martin Pool This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,11 +32,17 @@ **/ void msg_pool_usage(int msg_type, pid_t src_pid, void *buf, size_t len) { - char *reply = "no memory usage info yet"; + char *reply; + TALLOC_CTX *reply_pool = talloc_init_named("msg_pool_usage"); DEBUG(2,("Got POOL_USAGE\n")); + + reply = talloc_describe_all(reply_pool); + message_send_pid(src_pid, MSG_POOL_USAGE, reply, strlen(reply)+1, True); + + talloc_destroy(reply_pool); } /** -- cgit