#include #include #include void _exit(int status) { if(status && status != 128) // return error and this is not abort { printf("exit code: %d\n", status); } if (__con_is_load) { con_exit(0); // пусть удерживается, так даже лучше, можно вывод упесть проанализировать } _ksys_exit(); }