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
cf5188b6
Commit
cf5188b6
authored
Jun 21, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt at fixing POLLHUP handling for Linux 2.2.x.
parent
8438d9fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sock.c
server/sock.c
+3
-1
No files found.
server/sock.c
View file @
cf5188b6
...
@@ -304,6 +304,8 @@ static void sock_poll_event( struct object *obj, int event )
...
@@ -304,6 +304,8 @@ static void sock_poll_event( struct object *obj, int event )
}
}
}
}
else
if
(
event
&
POLLHUP
)
empty_recv
=
1
;
if
(
event
&
POLLOUT
)
if
(
event
&
POLLOUT
)
{
{
sock
->
pmask
|=
FD_WRITE
;
sock
->
pmask
|=
FD_WRITE
;
...
@@ -325,7 +327,7 @@ static void sock_poll_event( struct object *obj, int event )
...
@@ -325,7 +327,7 @@ static void sock_poll_event( struct object *obj, int event )
else
if
(
empty_recv
&&
(
sock
->
state
&
(
FD_READ
|
FD_WRITE
)
))
else
if
(
empty_recv
&&
(
sock
->
state
&
(
FD_READ
|
FD_WRITE
)
))
{
{
sock
->
errors
[
FD_CLOSE_BIT
]
=
sock_error
(
sock
->
obj
.
fd
);
sock
->
errors
[
FD_CLOSE_BIT
]
=
sock_error
(
sock
->
obj
.
fd
);
if
(
event
&
(
POLLERR
|
POLLHUP
)
)
if
(
event
&
POLLERR
)
sock
->
state
&=
~
(
FD_WINE_CONNECTED
|
FD_WRITE
);
sock
->
state
&=
~
(
FD_WINE_CONNECTED
|
FD_WRITE
);
sock
->
pmask
|=
FD_CLOSE
;
sock
->
pmask
|=
FD_CLOSE
;
sock
->
hmask
|=
FD_CLOSE
;
sock
->
hmask
|=
FD_CLOSE
;
...
...
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