From 51274d7b03b98fa032c9645bc434083a5cd0c675 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 15 Nov 2005 07:41:50 +0000 Subject: [PATCH] Show idle threads in thread status --- src/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile.c b/src/configfile.c index a42f4d6c..4f40a18f 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -1029,7 +1029,7 @@ void config_emit_threadstatus(WS_CONNINFO *pwsc, void *value, char *arg) { pss = ws_get_local_storage(pci); if(pss) { ws_writefd(pwsc,"%d%d%s%s\n", - pss->thread,pss->session,pss->host,pss->what); + pss->thread,pss->session,pss->host,pss->what ? pss->what : "Idle"); } pci=ws_thread_enum_next(config.server,&wste); }