diff options
author | Martin Pool <mbp@samba.org> | 2002-01-03 05:26:57 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-03 05:26:57 +0000 |
commit | 588a59b5051b88268d1a686c7c93264662f50b74 (patch) | |
tree | 53e2a55249faa8640183ad749393bb856acdfcc6 /source3/lib | |
parent | 3c2b7777ed5e1b873b98eb3d9e424308936ca17b (diff) | |
download | samba-588a59b5051b88268d1a686c7c93264662f50b74.tar.gz samba-588a59b5051b88268d1a686c7c93264662f50b74.tar.bz2 samba-588a59b5051b88268d1a686c7c93264662f50b74.zip |
Send back talloc allocation information when POOL_USAGE is received.
(This used to be commit 7cb8e95f9332d4c278d2aac5416f963639609d5a)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/tallocmsg.c | 10 |
1 files 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); } /** |