summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-07 06:13:36 +0000
committerTim Potter <tpot@samba.org>2003-04-07 06:13:36 +0000
commit25b1c37f6f67570dcfaff6081a74114d172dde1b (patch)
tree63fda30a603d9de9419dabb814be9ddc38c08ee8 /source3/utils
parent7ba4758b41ddd6cd17f85b32aa7de6dfd77147ca (diff)
downloadsamba-25b1c37f6f67570dcfaff6081a74114d172dde1b.tar.gz
samba-25b1c37f6f67570dcfaff6081a74114d172dde1b.tar.bz2
samba-25b1c37f6f67570dcfaff6081a74114d172dde1b.zip
Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage". Move initialisation of this and dmalloc messages inside message_init(). (This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index ec4f41cad6..44b18d57cd 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -43,7 +43,6 @@ static const struct {
{"dmalloc-log-changed", MSG_REQ_DMALLOC_LOG_CHANGED },
{"shutdown", MSG_SHUTDOWN },
{"drvupgrade", MSG_PRINTER_DRVUPGRADE},
- {"tallocdump", MSG_REQ_TALLOC_USAGE},
{NULL, -1}
};
@@ -176,7 +175,7 @@ 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 pid%u:\n%.*s",
+ printf("Got POOL_USAGE reply from pid %u:\n%.*s",
(unsigned int) src_pid, (int) len, (const char *) buf);
}
@@ -363,25 +362,6 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
}
break;
- case MSG_REQ_TALLOC_USAGE:
- if (!poolusage_registered) {
- message_register(MSG_TALLOC_USAGE, tallocdump_function);
- poolusage_registered = True;
- }
- got_pool = False;
- retval = send_message(dest, MSG_REQ_TALLOC_USAGE, NULL, 0, True);
- if (retval) {
- timeout_start = time(NULL);
- while (!got_pool) {
- message_dispatch();
- if ((time(NULL) - timeout_start) > MAX_WAIT) {
- fprintf(stderr,"tallocdump timeout\n");
- break;
- }
- }
- }
- break;
-
case MSG_REQ_DEBUGLEVEL:
if (!debuglevel_registered) {
message_register(MSG_DEBUGLEVEL, debuglevel_function);