Posix: add '#pragma GCC poison exit'

Generally exit() should not be used on Posix, because it exits the whole
program instead of only the task.
This commit is contained in:
Beat Küng
2018-08-31 13:28:28 +02:00
parent 9193312bd0
commit 4e6139d9fb
7 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ void list_builtins(apps_map_type &apps)
int shutdown_main(int argc, char *argv[])
{
printf("Shutting down\n");
exit(0);
system_exit(0);
}
int list_tasks_main(int argc, char *argv[])