From 07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 18 Aug 1999 19:01:07 +0000 Subject: added back test to exclude unused connections. (This used to be commit 6218d986c7cc9d8789b340adf1ca9a07ddc18a9a) --- source3/lib/util_status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/util_status.c b/source3/lib/util_status.c index d635cb08b5..74ffc62c34 100644 --- a/source3/lib/util_status.c +++ b/source3/lib/util_status.c @@ -78,7 +78,9 @@ fd = sys_open(fname,O_RDONLY, 0); } DEBUG(10,("cnum:%u. pid: %d magic: %x\n", c->cnum, c->pid, c->magic)); - if ( c->magic == 0x280267 && process_exists(c->pid) ) + + /* valid connection, smbd process still going, connection still going */ + if ( c->magic == 0x280267 && process_exists(c->pid) && c->cnum != -1 ) { conn++; } -- cgit