Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
c55bcff9
Commit
c55bcff9
authored
Oct 19, 2006
by
Rémi Denis-Courmont
Browse files
Interrupt blocking socket reads
parent
cc1791f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/io.c
View file @
c55bcff9
...
...
@@ -169,6 +169,12 @@ net_ReadInner( vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
if
(
(
wait_ms
!=
-
1
)
&&
(
wait_ms
<
500
)
)
delay_ms
=
wait_ms
;
if
(
p_this
->
b_die
)
{
errno
=
EINTR
;
goto
error
;
}
#ifdef HAVE_POLL
memset
(
ufd
,
0
,
sizeof
(
ufd
)
);
...
...
@@ -178,10 +184,7 @@ net_ReadInner( vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
ufd
[
i
].
events
=
POLLIN
;
}
if
(
p_this
->
b_die
)
return
i_total
;
n
=
poll
(
ufd
,
fdc
,
(
wait_ms
==
-
1
)
?
-
1
:
delay_ms
);
n
=
poll
(
ufd
,
fdc
,
delay_ms
);
if
(
n
==
-
1
)
goto
error
;
...
...
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