1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

added back test to exclude unused connections.

(This used to be commit 6218d986c7)
This commit is contained in:
Luke Leighton 1999-08-18 19:01:07 +00:00
parent 06b4627df0
commit 07d8c3dba2

View File

@ -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++;
}