Ensure we have a valid service exit time.
authorIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 22:17:45 +0000 (22:17 +0000)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 22:34:05 +0000 (22:34 +0000)
commit8663869ce7d0e0aedbd05dcba47f5472f7ac8c2e
tree9319f5035ef73e3d101d0ac2b70bda0622fce431
parent11226a6ddf6ad8e763b1241392949982f10222c4
Ensure we have a valid service exit time.

Sometimes GetProcessTimes() will succeed but return 0 for the process
exit time, leading check_parent() to conclude that the service had
exited before a child process had started, and thus that the child
process was not part of the service's tree.

We now use initialise the service exit time to the current time before
attempting to get the real exit time, and only override the value if
it's valid.

Thanks Czenda Czendov.
process.cpp
service.cpp