From: Jeffrey Altman Date: Tue, 10 Apr 2012 05:05:14 +0000 (-0400) Subject: Windows: report error on panic X-Git-Tag: upstream/1.8.0_pre1^2~2558 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7051672c7118b44e40a59b645f48428aabc9ee8a;p=packages%2Fo%2Fopenafs.git Windows: report error on panic If afsd_notifier() is called the service is going to exit(1). Report to the service manager that the service exited with an error as well. Change-Id: I88bb2f315016ab17a526d1eab162ccde8beb0dd0 Reviewed-on: http://gerrit.openafs.org/7148 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/WINNT/afsd/afsd_service.c b/src/WINNT/afsd/afsd_service.c index 817b03187..e4d8f6425 100644 --- a/src/WINNT/afsd/afsd_service.c +++ b/src/WINNT/afsd/afsd_service.c @@ -125,7 +125,7 @@ static void afsd_notifier(char *msgp, char *filep, long line) if (bRunningAsService) { ServiceStatus.dwCurrentState = SERVICE_STOPPED; - ServiceStatus.dwWin32ExitCode = NO_ERROR; + ServiceStatus.dwWin32ExitCode = ERROR_EXCEPTION_IN_SERVICE; ServiceStatus.dwCheckPoint = 0; ServiceStatus.dwWaitHint = 0; ServiceStatus.dwControlsAccepted = 0;