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
6ffe0845
Commit
6ffe0845
authored
Dec 01, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Cancel process asyncs on process termination.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ad1e0609
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
async.c
server/async.c
+5
-0
file.h
server/file.h
+1
-0
process.c
server/process.c
+1
-0
No files found.
server/async.c
View file @
6ffe0845
...
...
@@ -369,6 +369,11 @@ restart:
return
woken
;
}
void
cancel_process_asyncs
(
struct
process
*
process
)
{
cancel_async
(
process
,
NULL
,
NULL
,
0
);
}
/* wake up async operations on the queue */
void
async_wake_up
(
struct
async_queue
*
queue
,
unsigned
int
status
)
{
...
...
server/file.h
View file @
6ffe0845
...
...
@@ -175,6 +175,7 @@ extern void async_terminate( struct async *async, unsigned int status );
extern
void
async_wake_up
(
struct
async_queue
*
queue
,
unsigned
int
status
);
extern
struct
completion
*
fd_get_completion
(
struct
fd
*
fd
,
apc_param_t
*
p_key
);
extern
void
fd_copy_completion
(
struct
fd
*
src
,
struct
fd
*
dst
);
extern
void
cancel_process_asyncs
(
struct
process
*
process
);
/* access rights that require Unix read permission */
#define FILE_UNIX_READ_ACCESS (FILE_READ_DATA|FILE_READ_ATTRIBUTES|FILE_READ_EA)
...
...
server/process.c
View file @
6ffe0845
...
...
@@ -840,6 +840,7 @@ static void process_killed( struct process *process )
process
->
winstation
=
0
;
process
->
desktop
=
0
;
close_process_handles
(
process
);
cancel_process_asyncs
(
process
);
if
(
process
->
idle_event
)
{
release_object
(
process
->
idle_event
);
...
...
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