Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
02817460
Commit
02817460
authored
Jan 23, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netsync: don't sleep on poll() EINTR
parent
56cd0622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
modules/control/netsync.c
modules/control/netsync.c
+2
-5
No files found.
modules/control/netsync.c
View file @
02817460
...
...
@@ -180,7 +180,7 @@ static void *Master(void *handle)
struct
pollfd
ufd
=
{
.
fd
=
sys
->
fd
,
.
events
=
POLLIN
,
};
uint64_t
data
[
2
];
if
(
poll
(
&
ufd
,
1
,
-
1
)
<
=
0
)
if
(
poll
(
&
ufd
,
1
,
-
1
)
<
0
)
continue
;
/* We received something */
...
...
@@ -232,11 +232,8 @@ static void *Slave(void *handle)
goto
wait
;
/* Don't block */
int
ret
=
poll
(
&
ufd
,
1
,
sys
->
timeout
);
if
(
ret
==
0
)
if
(
poll
(
&
ufd
,
1
,
sys
->
timeout
)
<=
0
)
continue
;
if
(
ret
<
0
)
goto
wait
;
const
mtime_t
receive_date
=
mdate
();
if
(
recv
(
sys
->
fd
,
data
,
sizeof
(
data
),
0
)
<=
0
)
...
...
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