Ensure logging threads exit.
authorIain Patterson <me@iain.cx>
Tue, 30 Aug 2016 07:37:00 +0000 (08:37 +0100)
committerIain Patterson <me@iain.cx>
Mon, 5 Sep 2016 07:52:23 +0000 (08:52 +0100)
commitee9a86c8408feaf173733aea12a80211e5d74483
tree9c4df5b76b9c6d2cdd3070d57ed9d35647a17ae8
parentaecb56aeefcedd850ed274f09b85f62a6f623b5e
Ensure logging threads exit.

We need to close all handles to ensure that all logging threads are
joined.

Care must be taken to close the writing end of the logging pipe first so
that the logging thread can issue a final ReadFile() call.  Before the
thread exits it should close the reading end, however as a safety
measure we WaitForSingleObject() then close the reading end from the
main rotation thread.
io.cpp
io.h
nssm.h
service.cpp