handle EAGAIN properly

This commit is contained in:
Lennart Poettering 2009-02-02 01:53:11 +01:00
parent 2854afbb1b
commit 121a8b9190

View 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;
}