kernel: Invert O_NONBLOCK to check whether a thread should block

This commit is contained in:
apio 2023-03-23 21:34:38 +01:00
parent 95e884db97
commit 937802964c
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -52,7 +52,7 @@ bool FileDescriptor::should_append()
bool FileDescriptor::should_block()
{
return flags & O_NONBLOCK;
return !(flags & O_NONBLOCK);
}
bool FileDescriptor::is_readable()