summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-29 23:01:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:40 -0500
commita77658a33f84c2961fe92bec7576fb581e3c7ad6 (patch)
treed2fa73cbaba29d18694db332ce1183fd02a8d8d0 /source3/utils
parente789a870f185227f44f950261d54b1d02e6f5a8f (diff)
downloadsamba-a77658a33f84c2961fe92bec7576fb581e3c7ad6.tar.gz
samba-a77658a33f84c2961fe92bec7576fb581e3c7ad6.tar.bz2
samba-a77658a33f84c2961fe92bec7576fb581e3c7ad6.zip
r11962: Bring talloc up to date with Samba4, re-add the
talloc_describe_all() function. Fix smbcontrol <pid> pool-usage as we desparately need it working in the field to track down memory leaks. Seriously, when new functionality like the Samba4 talloc is added, don't just disable working functionality like "pool-usage", fix the damn thing first ! Jeremy. (This used to be commit 2e262a75cca4575edd00db3d24e7e35760943120)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index a0304eb89a..25b42a58c1 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -508,13 +508,13 @@ static BOOL do_poolusage(const struct process_id pid,
return False;
}
+ message_register(MSG_POOL_USAGE, print_string_cb);
+
/* Send a message and register our interest in a reply */
if (!send_message(pid, MSG_REQ_POOL_USAGE, NULL, 0, False))
return False;
- message_register(MSG_POOL_USAGE, print_string_cb);
-
wait_replies(procid_to_pid(&pid) == 0);
/* No replies were received within the timeout period */