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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Jeffrey Altman 2012-04-10 01:05:14 -04:00 committed by Jeffrey Altman
parent 846cef3685
commit 7051672c71

View File

@ -125,7 +125,7 @@ static void afsd_notifier(char *msgp, char *filep, long line)
if (bRunningAsService) { if (bRunningAsService) {
ServiceStatus.dwCurrentState = SERVICE_STOPPED; ServiceStatus.dwCurrentState = SERVICE_STOPPED;
ServiceStatus.dwWin32ExitCode = NO_ERROR; ServiceStatus.dwWin32ExitCode = ERROR_EXCEPTION_IN_SERVICE;
ServiceStatus.dwCheckPoint = 0; ServiceStatus.dwCheckPoint = 0;
ServiceStatus.dwWaitHint = 0; ServiceStatus.dwWaitHint = 0;
ServiceStatus.dwControlsAccepted = 0; ServiceStatus.dwControlsAccepted = 0;