diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 14:57:46 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 14:57:46 -0500 |
| commit | cc6e7378d3f5473137e0c46d39173e6f60dcefda (patch) | |
| tree | 4cd2883ad16fd594b7777b6f3821d5b9177af5c4 /src/stdlib/quick_exit.c | |
| parent | 000a7c045c98c30aac86db93f8c9c978e5ca8c59 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/stdlib/quick_exit.c')
| -rw-r--r-- | src/stdlib/quick_exit.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/stdlib/quick_exit.c b/src/stdlib/quick_exit.c index e1f1213a..06c69da8 100644 --- a/src/stdlib/quick_exit.c +++ b/src/stdlib/quick_exit.c @@ -1,7 +1,4 @@ -#if 0 - #include <stdlib.h> -#include "_safety.h" #include "_stdlib.h" /** cause normal quick program termination **/ @@ -10,10 +7,12 @@ _Noreturn void quick_exit(int status) SIGNAL_SAFE(1); /* execute all at_quick_exit() registered functions in reverse order */ + /* while (__stdlib.at_quick_exit) { __stdlib.at_quick_exit->fn(); __stdlib.at_quick_exit = __stdlib.at_quick_exit->prev; } + */ fflush(NULL); // fclose(all the things); @@ -46,6 +45,3 @@ streams are closed. All temporary files created by fn(tmpfile) are removed. /* STDC(201112) */ - - -#endif |
