1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 04:05:40 +03:00
aports/main/expect/09-unsafe-traps.patch
Alex Xu (Hello71) 85374e9406 main/expect: add some debian patches
code quality is still awful but hopefully works slightly better now?

fixes #10938
2021-08-09 08:50:34 +00:00

24 lines
482 B
Diff

Author: n/a
Description: Fixes some unsafe traps.
--- a/exp_trap.c
+++ b/exp_trap.c
@@ -264,6 +264,18 @@
#if defined(SIGSTOP)
traps[SIGSTOP].reserved = TRUE;
#endif
+#if defined(SIGSEGV)
+ traps[SIGSEGV].reserved = TRUE;
+#endif
+#if defined(SIGBUS)
+ traps[SIGBUS].reserved = TRUE;
+#endif
+#if defined(SIGILL)
+ traps[SIGILL].reserved = TRUE;
+#endif
+#if defined(SIGFPE)
+ traps[SIGFPE].reserved = TRUE;
+#endif
async_handler = Tcl_AsyncCreate(tophalf,(ClientData)0);