diff options
author | Luke Leighton <lkcl@samba.org> | 1999-08-18 19:01:07 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-08-18 19:01:07 +0000 |
commit | 07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5 (patch) | |
tree | 462d61837249d24dbf5394ea32a5ecc404322e2b | |
parent | 06b4627df0b75d91f3f7198f1cad1098e3431820 (diff) | |
download | samba-07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5.tar.gz samba-07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5.tar.bz2 samba-07d8c3dba22da89bfc2e0c7969ab00c56dcb0de5.zip |
added back test to exclude unused connections.
(This used to be commit 6218d986c7cc9d8789b340adf1ca9a07ddc18a9a)
-rw-r--r-- | source3/lib/util_status.c | 4 |
1 files changed, 3 insertions, 1 deletions
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++; } |