summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-05-19 21:23:47 +0000
committerBen Pfaff <blp@ovn.org>2017-05-31 16:24:24 -0700
commite2d12c07df97fc19c01f076be0a2bbb388e84c52 (patch)
tree5df5ad71fa0472acd1d7cb365e6fccf24b0ecf07 /lib
parentbb37956ac0067beaa338282d34bd6654b4cdde7c (diff)
downloadopenvswitch-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.c1
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: