From 9c409a9e397fad052606d7416cbb70f077d52cfd Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 3 Jan 2002 04:22:55 +0000 Subject: smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty boring so far. (This used to be commit 9b217dce7fe89d1e36a91d7d011c2a9fe185e0d3) --- source3/lib/tallocmsg.c | 6 +++++- source3/utils/smbcontrol.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c index e98e457880..a0987aba77 100644 --- a/source3/lib/tallocmsg.c +++ b/source3/lib/tallocmsg.c @@ -30,9 +30,13 @@ * Respond to a POOL_USAGE message by sending back string form of memory * usage stats. **/ -void msg_pool_usage(int msg_type, pid_t pid, void *buf, size_t len) +void msg_pool_usage(int msg_type, pid_t src_pid, void *buf, size_t len) { + char *reply = "no memory usage info yet"; + DEBUG(2,("Got POOL_USAGE\n")); + message_send_pid(src_pid, MSG_POOL_USAGE, + reply, strlen(reply)+1, True); } /** diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 4f89ae37b5..9be34b132d 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -149,7 +149,8 @@ void profilelevel_function(int msg_type, pid_t src, void *buf, size_t len) **/ static void pool_usage_cb(int msg_type, pid_t src_pid, void *buf, size_t len) { - printf("Got POOL_USAGE reply from %u\n", (unsigned int) src_pid); + printf("Got POOL_USAGE reply from pid%u:\n%.*s\n", + (unsigned int) src_pid, (int) len, (const char *) buf); } -- cgit