DEVEL15-windows-smb-no-showerrors-20060803
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 Aug 2006 00:30:28 +0000 (00:30 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 Aug 2006 00:30:28 +0000 (00:30 +0000)
pop up error dialogs prevent auto shutdown and restart of afsd service
on network adapater error

(cherry picked from commit 2247c0e499df70f2de1797e674ce1035514fc05c)

src/WINNT/afsd/smb.c

index 51c3435..12394a2 100644 (file)
@@ -141,7 +141,7 @@ int smb_hideDotFiles;
 int smb_useV3;         /* try to negotiate V3 */
 
 #ifndef DJGPP
-static showErrors = 1;
+static showErrors = 0;
 /* MessageBox or something like it */
 int (_stdcall *smb_MBfunc)(HWND, LPCTSTR, LPCTSTR, UINT) = NULL;
 #endif /* DJGPP */
@@ -8177,8 +8177,7 @@ void smb_Listener(void *parmp)
             if (showErrors)
                 code = (*smb_MBfunc)(NULL, tbuffer, "AFS Client Service: Fatal Error",
                                       MB_OK|MB_SERVICE_NOTIFICATION);
-            osi_assert(tbuffer);
-            ExitThread(1);
+           osi_panic(tbuffer, __FILE__, __LINE__);
 #else
             fprintf(stderr, "NCBLISTEN lana=%d failed with code %d\n",
                      ncbp->ncb_lana_num, code);