Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
85b0d984
Commit
85b0d984
authored
Feb 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I need some more sleep.
Now it really seems to work.
parent
1017e649
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/network/tcp.c
src/network/tcp.c
+4
-2
No files found.
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
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