summaryrefslogtreecommitdiff
path: root/src/__main.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-11 11:38:32 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-11 11:38:32 -0400
commita550833c70541ca909fc3d07771680b4162b6b41 (patch)
tree7018b7bb73efe5dfcd6fedf0143a572acac45141 /src/__main.c
parentbe9ae97e15714cc258426dee47844c5ff905cb28 (diff)
separate SIGSEGV handler from jkmalloc() so it can be installed without requiring dynamic memory use
Diffstat (limited to 'src/__main.c')
-rw-r--r--src/__main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/__main.c b/src/__main.c
index a24c24ef..510def1e 100644
--- a/src/__main.c
+++ b/src/__main.c
@@ -3,6 +3,7 @@
#include <locale.h>
#include "stdio/_stdio.h"
#include "stdlib/_stdlib.h"
+#include "signal/_signal.h"
#undef stdin
#undef stdout
@@ -39,6 +40,8 @@ void __init_libc(void)
extern char **environ;
__stdlib_h.environ = environ;
#endif
+
+ __segv();
}
void __main(int (*main)(int, char*[]), int argc, char **argv)