Redirect hooks' output.
authorIain Patterson <me@iain.cx>
Thu, 14 Jul 2016 16:44:14 +0000 (17:44 +0100)
committerIain Patterson <me@iain.cx>
Thu, 14 Jul 2016 16:46:34 +0000 (17:46 +0100)
commit6adc886e1fa296f67aacef0c01994e302e8caf86
tree96d4b7203e8c3002a59e4a68bac1fd0e623d267b
parent4f7514a8b856d31e1f26984e54bb5e27d475f71a
Redirect hooks' output.

If AppRedirectHook is 1 and stdout and/or stderr are being redirected,
also redirect the output of hooks.

Doing so requires using a logging thread and so implies online rotation
if log rotation is used.

Thanks Nabil Redmann.
12 files changed:
README.txt
gui.cpp
hook.cpp
io.cpp
io.h
nssm.rc
registry.cpp
registry.h
resource.h
service.cpp
service.h
settings.cpp