aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-09-07 01:55:03 -0700
committerPaul Eggert2012-09-07 01:55:03 -0700
commiteddb36a7d58b99e43deadcc808347008fe8a8627 (patch)
tree8e0c4c13dc7b1ecce90af5b6dd78d9425283420e /src
parent1a4f1e9b4805cd80952946b5f4461eeb467d9509 (diff)
downloademacs-eddb36a7d58b99e43deadcc808347008fe8a8627.tar.gz
emacs-eddb36a7d58b99e43deadcc808347008fe8a8627.zip
* emacs.c (main): Convert three 'signal' calls to 'sigaction' calls.
Problem introduced when merging patches. Noted by Eli Zaretskii in <http://bugs.gnu.org/12327#67>.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/emacs.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8cab03fca50..e4c94a2616b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,9 @@
12012-09-07 Paul Eggert <eggert@cs.ucla.edu> 12012-09-07 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 More signal-handler cleanup (Bug#12327). 3 More signal-handler cleanup (Bug#12327).
4 * emacs.c (main): Convert three 'signal' calls to 'sigaction' calls.
5 Problem introduced when merging patches. Noted by Eli Zaretskii in
6 <http://bugs.gnu.org/12327#67>.
4 * floatfns.c: Comment fix. 7 * floatfns.c: Comment fix.
5 * lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER. 8 * lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER.
6 SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right, 9 SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right,
diff --git a/src/emacs.c b/src/emacs.c
index ff50f409d5c..36e51869504 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1144,9 +1144,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1144 /* Don't catch these signals in batch mode if dumping. 1144 /* Don't catch these signals in batch mode if dumping.
1145 On some machines, this sets static data that would make 1145 On some machines, this sets static data that would make
1146 signal fail to work right when the dumped Emacs is run. */ 1146 signal fail to work right when the dumped Emacs is run. */
1147 signal (SIGQUIT, deliver_fatal_signal); 1147 sigaction (SIGQUIT, &fatal_error_action, 0);
1148 signal (SIGILL, deliver_fatal_signal); 1148 sigaction (SIGILL, &fatal_error_action, 0);
1149 signal (SIGTRAP, deliver_fatal_signal); 1149 sigaction (SIGTRAP, &fatal_error_action, 0);
1150#ifdef SIGUSR1 1150#ifdef SIGUSR1
1151 add_user_signal (SIGUSR1, "sigusr1"); 1151 add_user_signal (SIGUSR1, "sigusr1");
1152#endif 1152#endif