dsm: add missing I/O error handling
authorJanboe Ye <janboe.ye@outlook.com>
Fri, 21 Feb 2020 20:04:18 +0000 (04:04 +0800)
committerThomas Guillem <thomas@gllm.fr>
Mon, 24 Feb 2020 09:13:19 +0000 (10:13 +0100)
Signed-off-by: Janboe Ye <janboe.ye@outlook.com>
modules/access/dsm/access.c

index 14db6c1..dfa390c 100644 (file)
@@ -524,6 +524,8 @@ static ssize_t Read( stream_t *p_access, void *p_buffer, size_t i_len )
     if( i_read < 0 )
     {
         msg_Err( p_access, "read failed" );
+        if (errno != EINTR && errno != EAGAIN)
+            return 0;
         return -1;
     }