Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fdbd8fff
Commit
fdbd8fff
authored
Apr 19, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Remove loop that's not really used anymore (Coverity).
parent
62502d06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
services.c
programs/services/services.c
+7
-10
No files found.
programs/services/services.c
View file @
fdbd8fff
...
...
@@ -695,32 +695,29 @@ static DWORD service_start_process(struct service_entry *service_entry, HANDLE *
static
DWORD
service_wait_for_startup
(
struct
service_entry
*
service_entry
,
HANDLE
process_handle
)
{
HANDLE
handles
[
2
]
=
{
service_entry
->
status_changed_event
,
process_handle
};
DWORD
state
,
ret
;
WINE_TRACE
(
"%p
\n
"
,
service_entry
);
for
(;;)
{
DWORD
dwCurrentStatus
;
HANDLE
handles
[
2
]
=
{
service_entry
->
status_changed_event
,
process_handle
};
DWORD
ret
;
ret
=
WaitForMultipleObjects
(
2
,
handles
,
FALSE
,
service_pipe_timeout
);
if
(
ret
!=
WAIT_OBJECT_0
)
return
ERROR_SERVICE_REQUEST_TIMEOUT
;
service_lock_shared
(
service_entry
);
dwCurrentStatus
=
service_entry
->
status
.
dwCurrentState
;
state
=
service_entry
->
status
.
dwCurrentState
;
service_unlock
(
service_entry
);
if
(
dwCurrentStatus
==
SERVICE_START_PENDING
)
if
(
state
==
SERVICE_START_PENDING
)
{
WINE_TRACE
(
"Service changed its status
to SERVICE_START_PENDING
\n
"
);
WINE_TRACE
(
"Service state changed
to SERVICE_START_PENDING
\n
"
);
return
ERROR_SUCCESS
;
}
else
if
(
dwCurrentStatus
==
SERVICE_RUNNING
)
else
if
(
state
==
SERVICE_RUNNING
)
{
WINE_TRACE
(
"Service started successfully
\n
"
);
return
ERROR_SUCCESS
;
}
return
ERROR_SERVICE_REQUEST_TIMEOUT
;
}
}
/******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment