diff options
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/emacs.c | 6 |
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 @@ | |||
| 1 | 2012-09-07 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-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 |