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
0d5f1ab2
Commit
0d5f1ab2
authored
Sep 27, 2000
by
Stephane Lussier
Committed by
Alexandre Julliard
Sep 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Socket returned by accept function of Microsoft API should keep the
properties of the listening socket. This is also true for non-blocking property.
parent
8e264368
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sock.c
server/sock.c
+4
-0
No files found.
server/sock.c
View file @
0d5f1ab2
...
...
@@ -338,8 +338,12 @@ static struct object *accept_socket( int handle )
return
NULL
;
}
/* newly created socket gets the same properties of the listening socket */
fcntl
(
acceptfd
,
F_SETFL
,
O_NONBLOCK
);
/* make socket nonblocking */
acceptsock
->
obj
.
fd
=
acceptfd
;
acceptsock
->
state
=
WS_FD_CONNECTED
|
WS_FD_READ
|
WS_FD_WRITE
;
if
(
sock
->
state
&
WS_FD_NONBLOCKING
)
acceptsock
->
state
|=
WS_FD_NONBLOCKING
;
acceptsock
->
mask
=
sock
->
mask
;
acceptsock
->
hmask
=
0
;
acceptsock
->
pmask
=
0
;
...
...
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