Fail with ENOSYS on bad system calls.

This commit is contained in:
Pedro Falcato 2017-06-14 19:48:06 +01:00
parent c0a44e72a6
commit 087e3b3fda
No known key found for this signature in database
GPG Key ID: 66A1258056225EE4
1 changed files with 1 additions and 3 deletions

View File

@ -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