projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2854afb
)
handle EAGAIN properly
author
Lennart Poettering
<lennart@poettering.net>
Mon, 2 Feb 2009 00:53:11 +0000
(
01:53
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 2 Feb 2009 00:53:11 +0000
(
01:53
+0100)
src/modules/module-pipe-sink.c
patch
|
blob
|
history
diff --git
a/src/modules/module-pipe-sink.c
b/src/modules/module-pipe-sink.c
index
03e2717
..
7dd4409
100644
(file)
--- a/
src/modules/module-pipe-sink.c
+++ b/
src/modules/module-pipe-sink.c
@@
-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;
}