summaryrefslogtreecommitdiff
path: root/src/exit/_Exit.c
blob: 7a6115c7bbc71265929b20c8817d8476ee184b39 (plain)
1
2
3
4
5
6
7
8
#include <stdlib.h>
#include "syscall.h"

_Noreturn void _Exit(int ec)
{
	__syscall(SYS_exit_group, ec);
	for (;;) __syscall(SYS_exit, ec);
}