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 <[email protected]>
---
 lib/daemon-windows.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/daemon-windows.c b/lib/daemon-windows.c
index 4fc97a8..bed738f 100644
--- a/lib/daemon-windows.c
+++ b/lib/daemon-windows.c
@@ -196,6 +196,7 @@ control_handler(DWORD request)
         service_status.dwCurrentState = SERVICE_STOPPED;
         service_status.dwWin32ExitCode = NO_ERROR;
         SetEvent(wevent);
+        SetServiceStatus(hstatus, &service_status);
         break;
 
     default:
-- 
2.10.2.windows.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to