mirror of https://github.com/oxen-io/lokinet
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.
This commit is contained in:
parent
a9a2a115bc
commit
9cdfae2e42
|
@ -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…
Reference in New Issue