X-Git-Url: http://git.iain.cx/?p=nssm.git;a=blobdiff_plain;f=service.cpp;h=937a2ece4150ffae88f74c3f844858db7d1998d7;hp=d66b91606f5b5be28627b8cb9da954118e39d33f;hb=ee9a86c8408feaf173733aea12a80211e5d74483;hpb=aecb56aeefcedd850ed274f09b85f62a6f623b5e 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.