Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
a187d3e0
Commit
a187d3e0
authored
May 02, 2004
by
Nick Mathewson
⛰
Browse files
Assert that we never try to fakepoll on sock -1.
svn:r1774
parent
a16ec398
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common/fakepoll.c
View file @
a187d3e0
...
...
@@ -60,6 +60,7 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
for
(
idx
=
0
;
idx
<
nfds
;
++
idx
)
{
ufds
[
idx
].
revents
=
0
;
fd
=
ufds
[
idx
].
fd
;
assert
(
fd
>=
0
);
if
(
fd
>
maxfd
)
{
maxfd
=
fd
;
#ifdef MS_WINDOWS
...
...
Write
Preview
Supports
Markdown
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