correct windows service manager behavior.

report status to window service manager when we get and iterogate
message from the service manager.
update comments to reflect these changes.
pull/2045/head
Jeff Becker 2 years ago
parent a9a2a115bc
commit 9cdfae2e42
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D

@ -647,13 +647,16 @@ SvcCtrlHandler(DWORD dwCtrl)
switch (dwCtrl)
{
case SERVICE_CONTROL_STOP:
// tell servicve we are stopping
ReportSvcStatus(SERVICE_STOP_PENDING, NO_ERROR, 0);
// Signal the service to stop.
// do the actual tear down
handle_signal(SIGINT);
return;
case SERVICE_CONTROL_INTERROGATE:
break;
// report status
SetServiceStatus(SvcStatusHandle, &SvcStatus);
return;
default:
break;

Loading…
Cancel
Save