1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Kernel: Report POLLNVAL events in sys$poll instead of returning EBADF

As required by Dr. Posix.
This commit is contained in:
Idan Horowitz 2022-07-10 00:18:54 +03:00 committed by Andreas Kling
parent e32f6903f6
commit 275e5cdb64
3 changed files with 22 additions and 5 deletions

View file

@ -668,7 +668,7 @@ public:
class SelectBlocker final : public FileBlocker {
public:
struct FDInfo {
NonnullRefPtr<OpenFileDescription> description;
RefPtr<OpenFileDescription> description;
BlockFlags block_flags { BlockFlags::None };
BlockFlags unblocked_flags { BlockFlags::None };
};