lib/daemon-windows.c
/* Set the service as stopped. The control manager will terminate the
 * service soon after this call. Hence, this should ideally be the last
 * call before termination. */
Set the service as stopped. The control manager will terminate the
service soon after this call. Hence, this should ideally be the last
call before termination.
Set the service as stopped . The control manager will terminate the service soon after this call . Hence this should ideally be the last call before termination .
void
service_stop()
{
    if (!service_started) {
        return;
    }
    fatal_signal_atexit_handler();
    ResetEvent(wevent);
    CloseHandle(wevent);
    service_status.dwCurrentState = SERVICE_STOPPED;
    service_status.dwWin32ExitCode = NO_ERROR;
    SetServiceStatus(hstatus, &service_status);
}
void service_stop ( ) { if ( ! service_started ) { return ; } fatal_signal_atexit_handler ( ) ; ResetEvent ( wevent ) ; CloseHandle ( wevent ) ; service_status . dwCurrentState = SERVICE_STOPPED ; service_status . dwWin32ExitCode = NO_ERROR ; SetServiceStatus ( hstatus , & service_status ) ; }
Set the service as stopped.
Set the service as stopped .