From 7051672c7118b44e40a59b645f48428aabc9ee8a Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 10 Apr 2012 01:05:14 -0400 Subject: [PATCH] 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 --- src/WINNT/afsd/afsd_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/afsd_service.c b/src/WINNT/afsd/afsd_service.c index 817b031872..e4d8f64255 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;