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 18:11:58 +02:00
parent 9193312bd0
commit 4e6139d9fb
7 changed files with 20 additions and 7 deletions
@@ -87,7 +87,7 @@ public:
void task_main();
void exit() { _force_task_exit = true; }
void exit_task() { _force_task_exit = true; }
private:
void publish_led_control(led_control_s &led_control);