[vlc-devel] commit: Remove misleading dummy "Interrupted system call" error from net_Read ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Mar 4 20:01:26 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue Mar  4 21:01:08 2008 +0200| [4c685fc5ccfc01e8d60c18b89363eb17eea6369a]

Remove misleading dummy "Interrupted system call" error from net_Read

Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c685fc5ccfc01e8d60c18b89363eb17eea6369a
---

 src/network/io.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/network/io.c b/src/network/io.c
index 28e5c21..c38831c 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -332,7 +332,7 @@ __net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
 #else
                 errno = EINTR;
 #endif
-                goto error;
+                goto silent;
             }
         }
 
@@ -403,6 +403,7 @@ __net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
 
 error:
     msg_Err (p_this, "Read error: %m");
+silent:
     return -1;
 }
 




More information about the vlc-devel mailing list