Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
85b0d984
Commit
85b0d984
authored
Feb 11, 2007
by
Rémi Denis-Courmont
Browse files
I need some more sleep.
Now it really seems to work.
parent
1017e649
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/tcp.c
View file @
85b0d984
...
...
@@ -288,7 +288,7 @@ int __net_Accept( vlc_object_t *p_this, int pi_fd[], mtime_t i_wait )
/* Initialize file descriptor set */
FD_ZERO
(
&
readset
);
int
*
pi_end
;
int
*
pi_end
=
pi_fd
;
for
(
const
int
*
pi
=
pi_fd
;
*
pi
!=
-
1
;
pi
++
)
{
int
fd
=
*
pi
;
...
...
@@ -302,7 +302,7 @@ int __net_Accept( vlc_object_t *p_this, int pi_fd[], mtime_t i_wait )
struct
timeval
tv
=
{
0
,
b_block
?
500000
:
i_wait
};
int
val
=
select
(
maxfd
,
&
readset
,
NULL
,
NULL
,
&
tv
);
int
val
=
select
(
maxfd
+
1
,
&
readset
,
NULL
,
NULL
,
&
tv
);
if
(
val
==
0
)
{
if
(
b_block
)
...
...
@@ -346,6 +346,8 @@ int __net_Accept( vlc_object_t *p_this, int pi_fd[], mtime_t i_wait )
--
pi_end
;
memmove
(
pi_fd
,
pi_fd
+
1
,
pi_end
-
pi_fd
);
*
pi_end
=
*
pi
;
msg_Dbg
(
p_this
,
"accepted socket %d (from socket %d)"
,
fd
,
*
pi
);
return
fd
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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