From: Iain Patterson Date: Wed, 7 Sep 2016 14:12:42 +0000 (+0100) Subject: Don't leak hook startup handles. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=2d1226f8479378969c42109cfc37becd6306867d;hp=2d1226f8479378969c42109cfc37becd6306867d;p=nssm.git Don't leak hook startup handles. When sharing I/O settings we dup the service's I/O handles then call CreateProcess() to run the hook. However we didn't explicitly close the duplicated handles, so the subsequent CloseHandle() called by cleanup_loggers() would hang, as the logging thread's ReadFile() won't have completed due to the duplicated handle still being a potential writer. ---