Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c2b8728e
Commit
c2b8728e
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
(cherry picked from commit 028174606c60efaeb6621d26bbf58192adc0a5d1)
parent
17795d9f
Changes
1
Show 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 @
c2b8728e
...
@@ -180,7 +180,7 @@ static void *Master(void *handle)
...
@@ -180,7 +180,7 @@ static void *Master(void *handle)
struct
pollfd
ufd
=
{
.
fd
=
sys
->
fd
,
.
events
=
POLLIN
,
};
struct
pollfd
ufd
=
{
.
fd
=
sys
->
fd
,
.
events
=
POLLIN
,
};
uint64_t
data
[
2
];
uint64_t
data
[
2
];
if
(
poll
(
&
ufd
,
1
,
-
1
)
<
=
0
)
if
(
poll
(
&
ufd
,
1
,
-
1
)
<
0
)
continue
;
continue
;
/* We received something */
/* We received something */
...
@@ -232,11 +232,8 @@ static void *Slave(void *handle)
...
@@ -232,11 +232,8 @@ static void *Slave(void *handle)
goto
wait
;
goto
wait
;
/* Don't block */
/* Don't block */
int
ret
=
poll
(
&
ufd
,
1
,
sys
->
timeout
);
if
(
poll
(
&
ufd
,
1
,
sys
->
timeout
)
<=
0
)
if
(
ret
==
0
)
continue
;
continue
;
if
(
ret
<
0
)
goto
wait
;
const
mtime_t
receive_date
=
mdate
();
const
mtime_t
receive_date
=
mdate
();
if
(
recv
(
sys
->
fd
,
data
,
sizeof
(
data
),
0
)
<=
0
)
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