diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2017-05-19 21:23:47 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-31 16:24:24 -0700 |
commit | e2d12c07df97fc19c01f076be0a2bbb388e84c52 (patch) | |
tree | 5df5ad71fa0472acd1d7cb365e6fccf24b0ecf07 /lib | |
parent | bb37956ac0067beaa338282d34bd6654b4cdde7c (diff) | |
download | openvswitch-e2d12c07df97fc19c01f076be0a2bbb388e84c52.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/daemon-windows.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/daemon-windows.c b/lib/daemon-windows.c index 55545f8ec..580428454 100644 --- a/lib/daemon-windows.c +++ b/lib/daemon-windows.c @@ -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: |