dont loop forever on read from event fd

SVN revision: 33905
This commit is contained in:
Carsten Haitzler 2008-03-03 11:36:59 +00:00
parent fe6f5aa3d1
commit 29ccce4f86
1 changed files with 4 additions and 4 deletions

View File

@ -449,8 +449,8 @@ linux_sys_class_power_supply_cb_event_fd_active(void *data, Ecore_Fd_Handler *fd
(errno == EBADF) ||
(errno == EPIPE) ||
(errno == EINVAL) ||
(errno == ENOSPC) ||
(num == 0));
(errno == ENOSPC));
if (num == 0) break;
}
}
if (lost)
@ -820,8 +820,8 @@ linux_acpi_cb_event_fd_active(void *data, Ecore_Fd_Handler *fd_handler)
(errno == EBADF) ||
(errno == EPIPE) ||
(errno == EINVAL) ||
(errno == ENOSPC) ||
(num == 0));
(errno == ENOSPC));
if (num == 0) break;
}
}
if (lost)