diff options
author | Tim Potter <tpot@samba.org> | 2003-04-14 04:01:41 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-04-14 04:01:41 +0000 |
commit | 7d01a9b71c87f5715ded803b2c059a4797e9b690 (patch) | |
tree | d87aad67ba689fb10592dac425330097760b9d3d /source3/nmbd | |
parent | b0f49fcd538e28d27fa69a778cf04f4d78755481 (diff) | |
download | samba-7d01a9b71c87f5715ded803b2c059a4797e9b690.tar.gz samba-7d01a9b71c87f5715ded803b2c059a4797e9b690.tar.bz2 samba-7d01a9b71c87f5715ded803b2c059a4797e9b690.zip |
Merge:
- debugging tdb messages now initialised and handled in lib/messages.c
(This used to be commit da216706a420b31beaac91553a4eb90181de814a)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 013ef9ddb7..f87ab97798 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -101,25 +101,6 @@ static void sig_hup(int sig) sys_select_signal(); } -/******************************************************************* - Print out all talloc memory info. -********************************************************************/ - -void return_all_talloc_info(int msg_type, pid_t src_pid, void *buf, size_t len) -{ - TALLOC_CTX *ctx = talloc_init("info context"); - char *info = NULL; - - if (!ctx) - return; - - info = talloc_describe_all(ctx); - if (info) - DEBUG(10,(info)); - message_send_pid(src_pid, MSG_TALLOC_USAGE, info, info ? strlen(info) + 1 : 0, True); - talloc_destroy(ctx); -} - #if DUMP_CORE /**************************************************************************** ** Prepare to dump a core file - carefully! @@ -710,7 +691,6 @@ static BOOL open_sockets(BOOL isdaemon, int port) message_register(MSG_FORCE_ELECTION, nmbd_message_election); message_register(MSG_WINS_NEW_ENTRY, nmbd_wins_new_entry); message_register(MSG_SHUTDOWN, nmbd_terminate); - message_register(MSG_REQ_TALLOC_USAGE, return_all_talloc_info); DEBUG( 3, ( "Opening sockets %d\n", global_nmb_port ) ); |