mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
This commit is contained in:
parent
830a126a44
commit
9b217dce7f
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user