Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
42d3022b
Commit
42d3022b
authored
Sep 26, 2010
by
Jan D
Browse files
* xgselect.c (xg_select): Clear file descriptors not set from rfds and wfds.
parent
fb5f3a23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/xgselect.c
src/xgselect.c
+6
-0
No files found.
src/ChangeLog
View file @
42d3022b
2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
* xgselect.c (xg_select): Clear file descriptors not set from
rfds and wfds.
2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
* syntax.c (back_comment): Detect the case where a 1-char comment
...
...
src/xgselect.c
View file @
42d3022b
...
...
@@ -113,11 +113,17 @@ xg_select (max_fds, rfds, wfds, efds, timeout)
if
(
rfds
&&
FD_ISSET
(
i
,
rfds
))
++
retval
;
else
++
our_fds
;
}
else
if
(
rfds
)
FD_CLR
(
i
,
rfds
);
if
(
have_wfds
&&
FD_ISSET
(
i
,
&
all_wfds
))
{
if
(
wfds
&&
FD_ISSET
(
i
,
wfds
))
++
retval
;
else
++
our_fds
;
}
else
if
(
wfds
)
FD_CLR
(
i
,
wfds
);
if
(
efds
&&
FD_ISSET
(
i
,
efds
))
++
retval
;
}
...
...
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