kernel: Fix poll syscall

This commit is contained in:
apio 2023-08-14 18:14:16 +02:00
parent 2c2c6fbc2d
commit 56269f5187
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -48,9 +48,6 @@ Result<u64> sys_poll(Registers*, SyscallArgs args)
if (kfds[i].events & POLLIN) if (kfds[i].events & POLLIN)
{ {
fds_with_events++;
kfds[i].revents |= POLLIN;
if (inode->type() == VFS::InodeType::Socket) if (inode->type() == VFS::InodeType::Socket)
{ {
auto socket = (Socket*)inode.ptr(); auto socket = (Socket*)inode.ptr();