2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 13:58:14 +00:00

windows: Set service status when stop is issued

If the service manager issued a stop service, the control handler
registered by the running daemon should report that service changed
state.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Alin Serdean 2017-05-19 21:23:47 +00:00 committed by Ben Pfaff
parent bb37956ac0
commit e2d12c07df

View File

@ -198,6 +198,7 @@ control_handler(DWORD request)
service_status.dwCurrentState = SERVICE_STOPPED;
service_status.dwWin32ExitCode = NO_ERROR;
SetEvent(wevent);
SetServiceStatus(hstatus, &service_status);
break;
default: