Change-Id: I7b2cdd80ccc903811ed791dead112932b887469b
* while(1) {
* ret = poll(&fds, 1, -1);
* if (ret < 0) {
- * if (errno == EBUSY)
+ * if (errno == EINTR || errno == EAGAIN)
* continue;
* else {
* //error handling
TDM_INFO("fd(%d) polling in", fd);
while (poll(&fds, 1, -1) < 0) {
- if (errno == EBUSY) /* normal case */
+ if (errno == EINTR || errno == EAGAIN) /* normal case */
continue;
else {
TDM_ERR("poll failed: %m");
TDM_INFO("fd(%d) polling out", fd);
if (ret < 0) {
- if (errno == EBUSY) /* normal case */
+ if (errno == EINTR || errno == EAGAIN) /* normal case */
continue;
else {
TDM_ERR("poll failed: %m");
if (!sync) {
ret = poll(&fds, 1, -1);
if (ret < 0) {
- if (errno == EBUSY) /* normal case */
+ if (errno == EINTR || errno == EAGAIN) /* normal case */
continue;
else {
printf("poll failed: %m\n");