windows-zombie-fix-20030625
authorBen Creech <bpcreech@eos.ncsu.edu>
Wed, 25 Jun 2003 19:51:53 +0000 (19:51 +0000)
committerJim Rees <rees@umich.edu>
Wed, 25 Jun 2003 19:51:53 +0000 (19:51 +0000)
To refresh your memories, this past semester, NC State experienced a
problem wherein the OpenAFS Client for Windows would go into a zombie state
and stop responding to traffic on the SMB interface until restarted...

src/WINNT/afsd/smb.c

index 347b12f..3cd183a 100644 (file)
@@ -5886,7 +5886,7 @@ void smb_Listener(void *parmp)
         long len;
        long i, j;
         smb_vc_t *vcp;
-       int flags = 0;
+       int flags;
        char rname[NCBNAMSZ+1];
        char cname[MAX_COMPUTERNAME_LENGTH+1];
        int cnamelen = MAX_COMPUTERNAME_LENGTH+1;
@@ -5903,6 +5903,7 @@ void smb_Listener(void *parmp)
 
        while (1) {
                memset(ncbp, 0, sizeof(NCB));
+               flags = 0;
 #ifdef DJGPP
              /* terminate if shutdown flag is set */
              if (smbShutdownFlag == 1)