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 | 7cb8e95f9332d4c278d2aac5416f963639609d5a (patch) | |
tree | 716590b5ec141c25a5b10eeb1473b38314377b97 /source/lib/tallocmsg.c | |
parent | 53723e874885936dd67483ebf46601fc73489d17 (diff) | |
download | samba-7cb8e95f9332d4c278d2aac5416f963639609d5a.tar.gz samba-7cb8e95f9332d4c278d2aac5416f963639609d5a.tar.xz samba-7cb8e95f9332d4c278d2aac5416f963639609d5a.zip |
Send back talloc allocation information when POOL_USAGE is received.
Diffstat (limited to 'source/lib/tallocmsg.c')
-rw-r--r-- | source/lib/tallocmsg.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/lib/tallocmsg.c b/source/lib/tallocmsg.c index a0987aba77d..fabc06fb939 100644 --- a/source/lib/tallocmsg.c +++ b/source/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); } /** |