LibC: Oops, exit_thread() never returns.
This commit is contained in:
parent
d07be1087a
commit
80850e274d
Notes:
sideshowbarker
2024-07-19 14:32:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/80850e274dc
1 changed files with 3 additions and 3 deletions
|
@ -451,10 +451,10 @@ int create_thread(int(*entry)(void*), void* argument)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int exit_thread(int code)
|
||||
void exit_thread(int code)
|
||||
{
|
||||
int rc = syscall(SC_exit_thread, code);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
syscall(SC_exit_thread, code);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
int ftruncate(int fd, off_t length)
|
||||
|
|
Loading…
Add table
Reference in a new issue