mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(vfs): fix eventfd select
This commit is contained in:
parent
85ae8bfd5a
commit
7155146f9c
@ -106,7 +106,7 @@ static esp_err_t event_start_select(int nfds,
|
||||
|
||||
for (int i = 0; i < nfds; i++) {
|
||||
_lock_acquire_recursive(&s_events[i].lock);
|
||||
if (s_events[i].fd == i) {
|
||||
if (s_events[i].fd == i && (FD_ISSET(i, readfds) || FD_ISSET(i, writefds) || FD_ISSET(i, exceptfds))) {
|
||||
if (s_events[i].support_isr) {
|
||||
portENTER_CRITICAL(&s_events[i].data_spin_lock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user