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
24b64534
Commit
24b64534
authored
Dec 04, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Explicitly shutdown destroyed sockets to force pending poll() calls to return.
parent
28c53964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sock.c
server/sock.c
+6
-1
No files found.
server/sock.c
View file @
24b64534
...
...
@@ -583,7 +583,12 @@ static void sock_destroy( struct object *obj )
async_terminate_queue
(
&
sock
->
write_q
,
STATUS_CANCELLED
);
}
if
(
sock
->
event
)
release_object
(
sock
->
event
);
if
(
sock
->
fd
)
release_object
(
sock
->
fd
);
if
(
sock
->
fd
)
{
/* shut the socket down to force pending poll() calls in the client to return */
shutdown
(
get_unix_fd
(
sock
->
fd
),
SHUT_RDWR
);
release_object
(
sock
->
fd
);
}
}
/* create a new and unconnected socket */
...
...
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