From e2d12c07df97fc19c01f076be0a2bbb388e84c52 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Fri, 19 May 2017 21:23:47 +0000 Subject: [PATCH] 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 Signed-off-by: Ben Pfaff --- lib/daemon-windows.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5