summaryrefslogtreecommitdiff
path: root/src/stdlib/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/exit.c')
-rw-r--r--src/stdlib/exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c
index 60a933b8..12876050 100644
--- a/src/stdlib/exit.c
+++ b/src/stdlib/exit.c
@@ -9,6 +9,8 @@ _Noreturn void exit(int status)
long scno = __syscall_lookup(exit);
struct atexit *ae = &(__stdlib.atexit);
+ SIGNAL_SAFE(0);
+
if (__stdlib.quick_exit_called) {
__stdlib.constraint_handler("Undefined behavior: exit() called after quick_exit()", NULL, 0);
}