Commit 558ed802 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not poll regular files (useless), block devices (undefined).

We do poll character devices, as it works for TTYs and some platform
specific devices.
parent 9d4c2ee5
...@@ -210,10 +210,11 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len ) ...@@ -210,10 +210,11 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
ssize_t i_ret; ssize_t i_ret;
#ifndef WIN32 #ifndef WIN32
i_ret = net_Read (p_access, fd, NULL, p_buffer, i_len, false); if (!p_sys->b_seekable)
#else i_ret = net_Read (p_access, fd, NULL, p_buffer, i_len, false);
i_ret = read (fd, p_buffer, i_len); else
#endif #endif
i_ret = read (fd, p_buffer, i_len);
if( i_ret < 0 ) if( i_ret < 0 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment