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: