X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.cpp;h=937a2ece4150ffae88f74c3f844858db7d1998d7;hb=cc956aacde93d93f5810ca4c0df7775d1bfe3458;hp=d66b91606f5b5be28627b8cb9da954118e39d33f;hpb=b3b29f0b27046a282e688c494def532252ad21c3;p=nssm.git diff --git a/service.cpp b/service.cpp index d66b916..937a2ec 100644 --- a/service.cpp +++ b/service.cpp @@ -2060,6 +2060,9 @@ void CALLBACK end_service(void *arg, unsigned char why) { service->exit_count++; (void) nssm_hook(&hook_threads, service, NSSM_HOOK_EVENT_EXIT, NSSM_HOOK_ACTION_POST, NULL, NSSM_HOOK_DEADLINE, true); + /* Exit logging threads. */ + cleanup_loggers(service); + /* The why argument is true if our wait timed out or false otherwise. Our wait is infinite so why will never be true when called by the system.