git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allocate new console by default.
[nssm.git]
/
service.cpp
diff --git
a/service.cpp
b/service.cpp
index
284b5ec
..
e8a1569
100644
(file)
--- a/
service.cpp
+++ b/
service.cpp
@@
-1697,6
+1697,8
@@
void CALLBACK end_service(void *arg, unsigned char why) {
if (service->pid) kill_process_tree(service, service->pid, exitcode, service->pid);
\r
service->pid = 0;
\r
\r
if (service->pid) kill_process_tree(service, service->pid, exitcode, service->pid);
\r
service->pid = 0;
\r
\r
+ if (! service->no_console) FreeConsole();
\r
+
\r
/*
\r
The why argument is true if our wait timed out or false otherwise.
\r
Our wait is infinite so why will never be true when called by the system.
\r
/*
\r
The why argument is true if our wait timed out or false otherwise.
\r
Our wait is infinite so why will never be true when called by the system.
\r