Piotr Caban : services: Check process status to determine if service has terminated.
Alexandre Julliard
julliard at winehq.org
Mon Dec 12 12:25:54 CST 2011
Module: wine
Branch: master
Commit: b9797b5caa5a9ec03574fbd3552d31250cb74a4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9797b5caa5a9ec03574fbd3552d31250cb74a4f
Author: Piotr Caban <piotr at codeweavers.com>
Date: Mon Dec 12 11:04:07 2011 +0100
services: Check process status to determine if service has terminated.
---
programs/services/services.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/services/services.c b/programs/services/services.c
index 4a4aeb8..f2c5d26 100644
--- a/programs/services/services.c
+++ b/programs/services/services.c
@@ -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;
More information about the wine-cvs
mailing list