aboutsummaryrefslogtreecommitdiffstats
path: root/main/expect/09-unsafe-traps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/expect/09-unsafe-traps.patch')
-rw-r--r--main/expect/09-unsafe-traps.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/expect/09-unsafe-traps.patch b/main/expect/09-unsafe-traps.patch
new file mode 100644
index 00000000000..1440f217c94
--- /dev/null
+++ b/main/expect/09-unsafe-traps.patch
@@ -0,0 +1,24 @@
+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);
+