~ubuntu-branches/ubuntu/trusty/expect/trusty

« back to all changes in this revision

Viewing changes to debian/patches/09-unsafe-traps.patch

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-03 12:00:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090803120029-mdxnz1e7vyu06ji6
* Adding patch from Adam Tkac <atkac@redhat.com> to compile with
  tcl8.5, but not yet enabling it.
* Updating vcs fields in control file.
* Using patch-stamp rather than patch in rules file.
* Replacing obsolete dh_clean -k with dh_prep.
* Using correct rfc-2822 date formats in changelog.
* Updating package to standards version 3.8.2.
* Adding misc depends.
* Removing shlibs file.
* Using quilt rather than dpatch.
* Adding patch from fedora to fix header comments.
* Adding patch from fedora to fix permissions when accessing logfiles.
* Adding patch from Vitezslav Crhonek <vcrhonek@redhat.com> for tcl
  8.5.6, but not yet enabling it.
* Minimizing rules file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: n/a
 
2
Description: Fixes some unsafe traps.
 
3
 
 
4
diff -Naurp expect.orig/exp_trap.c expect/exp_trap.c
 
5
--- expect.orig/exp_trap.c      2009-08-03 06:58:30.000000000 +0000
 
6
+++ expect/exp_trap.c   2009-08-03 08:37:20.000000000 +0000
 
7
@@ -261,6 +261,18 @@ exp_init_trap()
 
8
 #if defined(SIGSTOP)
 
9
        traps[SIGSTOP].reserved = TRUE;
 
10
 #endif
 
11
+#if defined(SIGSEGV)
 
12
+       traps[SIGSEGV].reserved = TRUE;
 
13
+#endif
 
14
+#if defined(SIGBUS)
 
15
+       traps[SIGBUS].reserved = TRUE;
 
16
+#endif
 
17
+#if defined(SIGILL)
 
18
+       traps[SIGILL].reserved = TRUE;
 
19
+#endif
 
20
+#if defined(SIGFPE)
 
21
+       traps[SIGFPE].reserved = TRUE;
 
22
+#endif
 
23
 
 
24
        async_handler = Tcl_AsyncCreate(tophalf,(ClientData)0);
 
25