Legacy quick'n'dirtiness.
authorIain Patterson <me@iain.cx>
Wed, 1 Jan 2014 18:49:06 +0000 (18:49 +0000)
committerIain Patterson <me@iain.cx>
Wed, 1 Jan 2014 21:28:03 +0000 (21:28 +0000)
commit67795adae06c0f28346818bdd974597cd77a90f1
tree188d69cc593985bd7eccbdbcdfa9367c90757800
parent121d394369e8ea77930579c2d8a285c219ac446c
Legacy quick'n'dirtiness.

On Windows 2000, StartService() and ControlService() return
ERROR_IO_PENDING immediately.  Later versions of Windows have a
builtin timeout before they will return that error.

As far as we're concerned, ERROR_IO_PENDING indicates that the service
control was sent successfully so we simply override the error and
return success.

If NSSM's service management functionality is ever expanded we can take
the time to handle service controls in a more robust way.
service.cpp