diff options
author | Tim Potter <tpot@samba.org> | 2001-11-14 06:18:13 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-14 06:18:13 +0000 |
commit | b7f6113c2dcadef6a9cc123ce719171523f54d23 (patch) | |
tree | e137ba266488c261815cb846aebf08206e8b2a93 /source3/nsswitch/winbindd.c | |
parent | 68893d4a2faa04f8b0b90dfc03466e1105d087a7 (diff) | |
download | samba-b7f6113c2dcadef6a9cc123ce719171523f54d23.tar.gz samba-b7f6113c2dcadef6a9cc123ce719171523f54d23.tar.bz2 samba-b7f6113c2dcadef6a9cc123ce719171523f54d23.zip |
Random connection robustness related fixes. Display some debugs about
the currently open connections when winbindd receives a USR1 signal.
Hmm - I've just realised this will conflict with the messaging code
but we don't use that yet.
(This used to be commit caef54e40081477609a824185949ddf6db6ba363)
Diffstat (limited to 'source3/nsswitch/winbindd.c')
-rw-r--r-- | source3/nsswitch/winbindd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 5231c840ba..b37fdb1a4f 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -55,17 +55,17 @@ static BOOL reload_services_file(BOOL test) return(ret); } -static void winbindd_dump_status(void) +static void winbindd_status(void) { struct winbindd_cli_state *tmp; - DEBUG(0, ("Global status for winbindd:\n")); + DEBUG(0, ("winbindd status:\n")); /* Print client state information */ DEBUG(0, ("\t%d clients currently active\n", num_clients)); - if (DEBUGLEVEL >= 2) { + if (DEBUGLEVEL >= 2 && num_clients) { DEBUG(2, ("\tclient list:\n")); for(tmp = client_list; tmp; tmp = tmp->next) { DEBUG(2, ("\t\tpid %d, sock %d, rbl %d, wbl %d\n", @@ -79,9 +79,10 @@ static void winbindd_dump_status(void) static void do_print_winbindd_status(void) { - winbindd_dump_status(); - winbindd_idmap_dump_status(); - winbindd_cache_dump_status(); + winbindd_status(); + winbindd_idmap_status(); + winbindd_cache_status(); + winbindd_cm_status(); } /* Flush client cache */ |