summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-09-19 09:50:47 +0000
committerphintuka <phintuka>2006-09-19 09:50:47 +0000
commit9ba6856b630d9f27d2d4f9ca1c78ce2bf66ed97a (patch)
tree7eb423a1bc30a71f74b86b3edbe2fa3deaf2fdfd
parent98fb1b772332519ddfa6eee42396484d9b515e48 (diff)
downloadxineliboutput-9ba6856b630d9f27d2d4f9ca1c78ce2bf66ed97a.tar.gz
xineliboutput-9ba6856b630d9f27d2d4f9ca1c78ce2bf66ed97a.tar.bz2
reset errno before poll
-rw-r--r--tools/cxsocket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cxsocket.h b/tools/cxsocket.h
index 086e3b11..bbc647b7 100644
--- a/tools/cxsocket.h
+++ b/tools/cxsocket.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: cxsocket.h,v 1.8 2006-08-23 06:46:00 phintuka Exp $
+ * $Id: cxsocket.h,v 1.9 2006-09-19 09:50:47 phintuka Exp $
*
*/
@@ -137,7 +137,7 @@ static inline ssize_t timed_write(int fd, const void *buffer, size_t size,
cPoller poller(fd, true);
while (size > 0) {
-
+ errno = 0;
if(!poller.Poll(timeout_ms)) {
LOGERR("timed_write: poll() failed");
return written-size;