diff --git a/kernel/src/sys/stdio.cpp b/kernel/src/sys/stdio.cpp index 37851641..8b6f1147 100644 --- a/kernel/src/sys/stdio.cpp +++ b/kernel/src/sys/stdio.cpp @@ -152,14 +152,12 @@ void sys_close(Context* context, int fd) { if (fd >= TASK_MAX_FDS || fd < 0) { - context->rax = -EBADF; return; } Task* current_task = Scheduler::current_task(); if (!current_task->files[fd].is_open()) { - context->rax = -EBADF; return; }