mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-16 07:57:13 -04:00
Fix bug with has_handle
This commit is contained in:
parent
df67d48660
commit
3f08e7b31f
@ -820,7 +820,7 @@ void scheduler::release_handle(size_t fd){
|
||||
|
||||
bool scheduler::has_handle(size_t fd){
|
||||
if(fd < pcb[current_pid].handles.size()){
|
||||
return pcb[current_pid].handles[fd].empty();
|
||||
return !pcb[current_pid].handles[fd].empty();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user