LibC: Mark _exit() as noreturn

We already do this for exit().
This commit is contained in:
Sergey Bugaev 2020-05-26 13:15:14 +03:00 committed by Andreas Kling
parent 83c809df5f
commit ac4a31e057
Notes: sideshowbarker 2024-07-19 06:07:16 +09:00
2 changed files with 1 additions and 2 deletions

View File

@ -208,7 +208,6 @@ void exit(int status)
fflush(stdout);
fflush(stderr);
_exit(status);
ASSERT_NOT_REACHED();
}
static void __atexit_to_cxa_atexit(void* handler)

View File

@ -72,7 +72,7 @@ int execlp(const char* filename, const char* arg, ...);
int chroot(const char* path);
int chroot_with_mount_flags(const char* path, int mount_flags);
void sync();
void _exit(int status);
__attribute__((noreturn)) void _exit(int status);
pid_t getsid(pid_t);
pid_t setsid();
int setpgid(pid_t pid, pid_t pgid);