diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-23 13:58:37 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-23 13:58:37 -0500 |
| commit | 8700224e98f95807d896d214380796e6f80678d0 (patch) | |
| tree | fa5d6e195d2a6533df7cf338a36e4a6d2d4cf08c | |
| parent | 80505a7eb147422226d1b86da17f516982d0f4c8 (diff) | |
use exit() instead of _exit()
| -rw-r--r-- | src/stdlib/stdlib.c | 2 | ||||
| -rw-r--r-- | src/stdlib/stdlib.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 45a4bd00..157dbfd4 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -145,7 +145,7 @@ void say(Text_t text, bool newline) { public _Noreturn void tomo_exit(Text_t text, int32_t status) { if (text.length > 0) print(text); - _exit(status); + exit(status); } public diff --git a/src/stdlib/stdlib.h b/src/stdlib/stdlib.h index e52b5cd1..aadce27c 100644 --- a/src/stdlib/stdlib.h +++ b/src/stdlib/stdlib.h @@ -30,7 +30,7 @@ void tomo_init(void); else fputs("\n", stderr); \ fflush(stderr); \ raise(SIGABRT); \ - _exit(1); \ + exit(1); \ }) #define fail_source(filename, start, end, ...) \ @@ -50,7 +50,7 @@ void tomo_init(void); if (USE_COLOR) fputs("\x1b[m", stderr); \ fflush(stderr); \ raise(SIGABRT); \ - _exit(1); \ + exit(1); \ }) _Noreturn void fail_text(Text_t message); |
