Try to send Control-C event to application console.
authorIain Patterson <me@iain.cx>
Tue, 19 Feb 2013 17:38:03 +0000 (09:38 -0800)
committerIain Patterson <me@iain.cx>
Tue, 19 Feb 2013 18:04:23 +0000 (10:04 -0800)
commitb841998b630a15bb554da822b5f8ba3bbcb1b601
tree67afe6c7fe89cf06b3593f6f82ff5d873b728645
parent319a7460a5e8b140fb03378a51d9c07afb6478d8
Try to send Control-C event to application console.

Try to attach to the application's console and send a Control-C event when
shutting down.  If a console exists, is successfully attached and successfully
sent the event, allow a grace period for the application to exit before sending
window messages or eventually calling TerminateProcess().

Now console applications which register shutdown handlers, such as java
launched from a batch file, have a chance to clean up and shut down gracefully.

Thanks Eric Cheldelin.
ChangeLog.txt
README.txt
messages.mc
nssm.h
process.cpp
process.h