From 0cf42877190bd1c25763fb2cd537959d0afd93b9 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 24 Dec 2022 13:21:40 -0300 Subject: [PATCH] syscalls: fix issue with poll --- src/sys/syscalls/poll.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sys/syscalls/poll.c b/src/sys/syscalls/poll.c index 745551cf..3abff3fd 100644 --- a/src/sys/syscalls/poll.c +++ b/src/sys/syscalls/poll.c @@ -44,8 +44,7 @@ syscallret syscall_poll(pollfd *fds, size_t nfds, int timeoutms){ } for(size_t fd = 0; fd < nfds; ++fd){ - ilist[fd].fd = fds[fd].fd; - ilist[fd].events = fds[fd].events; + ilist[fd].revents = 0; } // check for events and stuff