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
2fad531c
Commit
2fad531c
authored
Mar 21, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Implement disconnecting message queue.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9db22fdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
named_pipe.c
server/named_pipe.c
+15
-0
No files found.
server/named_pipe.c
View file @
2fad531c
...
...
@@ -401,6 +401,21 @@ static void pipe_end_disconnect( struct pipe_end *pipe_end, unsigned int status
pipe_end
->
connection
=
NULL
;
if
(
use_server_io
(
pipe_end
))
{
struct
pipe_message
*
message
,
*
next
;
struct
async
*
async
;
if
(
pipe_end
->
fd
)
fd_async_wake_up
(
pipe_end
->
fd
,
ASYNC_TYPE_WAIT
,
status
);
LIST_FOR_EACH_ENTRY_SAFE
(
message
,
next
,
&
pipe_end
->
message_queue
,
struct
pipe_message
,
entry
)
{
async
=
message
->
async
;
if
(
async
||
status
==
STATUS_PIPE_DISCONNECTED
)
free_message
(
message
);
if
(
!
async
)
continue
;
async_terminate
(
async
,
status
);
release_object
(
async
);
}
if
(
status
==
STATUS_PIPE_DISCONNECTED
)
set_fd_signaled
(
pipe_end
->
fd
,
0
);
}
if
(
connection
)
{
connection
->
connection
=
NULL
;
...
...
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