kernel: Invert O_NONBLOCK to check whether a thread should block
This commit is contained in:
parent
95e884db97
commit
937802964c
@ -52,7 +52,7 @@ bool FileDescriptor::should_append()
|
||||
|
||||
bool FileDescriptor::should_block()
|
||||
{
|
||||
return flags & O_NONBLOCK;
|
||||
return !(flags & O_NONBLOCK);
|
||||
}
|
||||
|
||||
bool FileDescriptor::is_readable()
|
||||
|
Loading…
Reference in New Issue
Block a user