]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-smb-no-showerrors-20060803
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 Aug 2006 00:28:58 +0000 (00:28 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 Aug 2006 00:28:58 +0000 (00:28 +0000)
pop up error dialogs prevent auto shutdown and restart of afsd service
on network adapater error

src/WINNT/afsd/smb.c

index f2cf7521178ab0d414083fb63446550008fe12f1..fddf723595f95970b3c085af8ad2d78234cbd9d4 100644 (file)
@@ -125,7 +125,7 @@ int smb_hideDotFiles;
 /* global state about V3 protocols */
 int smb_useV3;         /* try to negotiate V3 */
 
-static showErrors = 1;
+static showErrors = 0;
 /* MessageBox or something like it */
 int (_stdcall *smb_MBfunc)(HWND, LPCTSTR, LPCTSTR, UINT) = NULL;
 
@@ -7769,8 +7769,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__);
         }
 
         /* check for remote conns */