Skip to content
Snippets Groups Projects
Commit b9797b5c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard
Browse files

services: Check process status to determine if service has terminated.

parent c11e163e
No related branches found
No related tags found
No related merge requests found
......@@ -807,7 +807,7 @@ DWORD service_start(struct service_entry *service, DWORD service_argc, LPCWSTR *
if (err != ERROR_SUCCESS)
return err;
if (service->control_pipe != INVALID_HANDLE_VALUE)
if (WaitForSingleObject(service->process, 0) == WAIT_TIMEOUT)
{
scmdatabase_unlock_startup(service->db);
return ERROR_SERVICE_ALREADY_RUNNING;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment