1 2 3 4 5 6 7
#include <metal/shutdown.h> void _exit(int exit_status) { metal_shutdown(exit_status); while (1) ; }