[pulseaudio-commits] r2251 - /branches/glitch-free/src/pulsecore/ioline.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Apr 11 09:37:24 PDT 2008
Author: lennart
Date: Fri Apr 11 18:37:22 2008
New Revision: 2251
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2251&root=pulseaudio&view=rev
Log:
don't fail if a signalled writability of STDOUT is no longer true when we try it because some other thread already wrote something
Modified:
branches/glitch-free/src/pulsecore/ioline.c
Modified: branches/glitch-free/src/pulsecore/ioline.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/ioline.c?rev=2251&root=pulseaudio&r1=2250&r2=2251&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/ioline.c (original)
+++ branches/glitch-free/src/pulsecore/ioline.c Fri Apr 11 18:37:22 2008
@@ -299,6 +299,10 @@
/* Read some data */
if ((r = pa_iochannel_read(l->io, l->rbuf+l->rbuf_index+l->rbuf_valid_length, len)) <= 0) {
+
+ if (r < 0 && errno == EAGAIN)
+ return 0;
+
if (r < 0 && errno != ECONNRESET) {
pa_log("read(): %s", pa_cstrerror(errno));
failure(l, 0);
@@ -328,6 +332,9 @@
if ((r = pa_iochannel_write(l->io, l->wbuf+l->wbuf_index, l->wbuf_valid_length)) <= 0) {
+ if (r < 0 && errno == EAGAIN)
+ return 0;
+
if (r < 0 && errno != EPIPE)
pa_log("write(): %s", pa_cstrerror(errno));
More information about the pulseaudio-commits
mailing list