]> code.delx.au - pulseaudio/commitdiff
handle EAGAIN properly
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Feb 2009 00:53:11 +0000 (01:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Feb 2009 00:53:11 +0000 (01:53 +0100)
src/modules/module-pipe-sink.c

index 03e27170c2fd0c90a7efa9fc782762ae1d967195..7dd4409892514ef0f451e1b37f8d6d10a47d2049 100644 (file)
@@ -138,7 +138,9 @@ static int process_render(struct userdata *u) {
 
             if (errno == EINTR)
                 continue;
-            else if (errno != EAGAIN) {
+            else if (errno == EAGAIN)
+                return 0;
+            else {
                 pa_log("Failed to write data to FIFO: %s", pa_cstrerror(errno));
                 return -1;
             }