Userspace atomics library
[akaros.git] / user / roslib / src / exit.c
1 #include <lib.h>
2
3 extern env_t* env;
4
5 void exit(void) __attribute__((noreturn))
6 {
7         sys_env_destroy(env->env_id);
8         //Shouldn't get here, but include anyway so the compiler is happy.. 
9         while(1);
10 }
11