Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libc-bottom-half/cloudlibc/src/libc/poll/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static int poll_wasip1(struct pollfd *fds, size_t nfds, int timeout) {
// As entries are decomposed into separate read/write subscriptions,
// we cannot detect POLLERR, POLLHUP and POLLNVAL if POLLRDNORM and
// POLLWRNORM are not specified. Disallow this for now.
if (!created_events) {
// Ignore fd entries that have no events requested.
if (!created_events && pollfd->events != 0) {
errno = ENOSYS;
return -1;
}
Expand Down