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
049ac1d8
Commit
049ac1d8
authored
Aug 11, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Hold an additional process reference while waiting for startup.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cafcf644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
services.c
programs/services/services.c
+4
-1
No files found.
programs/services/services.c
View file @
049ac1d8
...
...
@@ -778,7 +778,7 @@ static DWORD service_start_process(struct service_entry *service_entry, struct p
service_entry
->
status
.
dwCurrentState
=
SERVICE_START_PENDING
;
scmdatabase_add_process
(
service_entry
->
db
,
process
);
service_entry
->
process
=
process
;
service_entry
->
process
=
grab_process
(
process
)
;
service_unlock
(
service_entry
);
...
...
@@ -788,6 +788,7 @@ static DWORD service_start_process(struct service_entry *service_entry, struct p
{
err
=
GetLastError
();
process_terminate
(
process
);
release_process
(
process
);
return
err
;
}
...
...
@@ -916,6 +917,8 @@ DWORD service_start(struct service_entry *service, DWORD service_argc, LPCWSTR *
ReleaseMutex
(
process
->
control_mutex
);
else
process_terminate
(
process
);
release_process
(
process
);
}
scmdatabase_unlock_startup
(
service
->
db
);
...
...
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