diff options
Diffstat (limited to 'nuttx/fs/fs_poll.c')
-rw-r--r-- | nuttx/fs/fs_poll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/fs_poll.c b/nuttx/fs/fs_poll.c index 84d20efe8..9cf6486c1 100644 --- a/nuttx/fs/fs_poll.c +++ b/nuttx/fs/fs_poll.c @@ -93,7 +93,7 @@ static void poll_semtake(FAR sem_t *sem) ****************************************************************************/ #if CONFIG_NFILE_DESCRIPTORS > 0 -static int poll_fdsetup(int fd, FAR struct pollfd *fds) +static int poll_fdsetup(int fd, FAR struct pollfd *fds, boolean setup) { FAR struct filelist *list; FAR struct file *this_file; @@ -137,7 +137,7 @@ static int poll_fdsetup(int fd, FAR struct pollfd *fds) { /* Yes, then setup the poll */ - ret = (int)inode->u.i_ops->poll(this_file, fds); + ret = (int)inode->u.i_ops->poll(this_file, fds, setup); } return ret; } @@ -168,7 +168,7 @@ static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, sem_t *sem) /* Set up the poll */ - ret = poll_fdsetup(fds[i].fd, &fds[i]); + ret = poll_fdsetup(fds[i].fd, &fds[i], TRUE); if (ret < 0) { return ret; @@ -201,7 +201,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, int *count) { /* Teardown the poll */ - status = poll_fdsetup(fds[i].fd, NULL); + status = poll_fdsetup(fds[i].fd, &fds[i], FALSE); if (status < 0) { ret = status; |