Unverified Commit 087e3b3f authored by heat's avatar heat

Fail with ENOSYS on bad system calls.

parent c0a44e72
......@@ -206,9 +206,7 @@ void* syscall_list[SYSCALL_MAX_NUM + 1] =
int sys_bad_syscall(void)
{
// TODO: Send signal, set errno, or crash/abort process?
Log::PrintF("I am the bad system call!\n");
return errno = EINVAL, -1;
return errno = ENOSYS, -1;
}
} // namespace Sortix
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment