At least para_audioc uses the negative return value of para_select()
to print an error message.
PARA_ERROR(F_GETFL, "failed to get fd flags"), \
PARA_ERROR(F_SETFL, "failed to set fd flags"), \
PARA_ERROR(FGETS, "fgets error"), \
+ PARA_ERROR(SELECT, "select error"), \
#define WRITE_ERRORS \
ret = select(n, readfds, writefds, NULL, timeout_tv);
err = errno;
} while (ret < 0 && err == EINTR);
- if (ret < 0)
+ if (ret < 0) {
PARA_CRIT_LOG("select error: %s, max_fileno: %d\n",
strerror(err), n);
+ ret = -E_SELECT;
+ }
return ret;
}