kernel: Fix poll syscall
This commit is contained in:
parent
2c2c6fbc2d
commit
56269f5187
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user