core, modules: Remove useless EINTR tests

Since commit ad447d1468 (in 2009) pa_read and pa_write take care of
handling EINTR error.
So, pa_read, pa_write, pa_iochannel_read and pa_iochannel_write can not
exit with errno set to EINTR, and testing it is useless.
This commit is contained in:
Frédéric Danis 2019-05-28 16:49:19 +02:00 committed by Georg Chini
parent 8342c12339
commit 05f3e8bf9a
10 changed files with 31 additions and 82 deletions

View file

@ -279,10 +279,6 @@ static int sco_process_render(struct userdata *u) {
saved_errno = errno;
if (saved_errno == EINTR)
/* Retry right away if we got interrupted */
continue;
pa_memblock_unref(memchunk.memblock);
if (saved_errno == EAGAIN) {
@ -462,11 +458,7 @@ static int a2dp_write_buffer(struct userdata *u, size_t nbytes) {
if (l < 0) {
if (errno == EINTR)
/* Retry right away if we got interrupted */
continue;
else if (errno == EAGAIN) {
if (errno == EAGAIN) {
/* Hmm, apparently the socket was not writable, give up for now */
pa_log_debug("Got EAGAIN on write() after POLLOUT, probably there is a temporary connection loss.");
break;