mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 11:13:37 +00:00
services: Check process status to determine if service has terminated.
This commit is contained in:
parent
c11e163eb7
commit
b9797b5caa
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue