1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00

* 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>.
This commit is contained in:
Paul Eggert 2012-09-07 01:55:03 -07:00
parent 1a4f1e9b48
commit eddb36a7d5
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,9 @@
2012-09-07 Paul Eggert <eggert@cs.ucla.edu>
More signal-handler cleanup (Bug#12327).
* 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>.
* floatfns.c: Comment fix.
* lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER.
SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right,

View file

@ -1144,9 +1144,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
/* Don't catch these signals in batch mode if dumping.
On some machines, this sets static data that would make
signal fail to work right when the dumped Emacs is run. */
signal (SIGQUIT, deliver_fatal_signal);
signal (SIGILL, deliver_fatal_signal);
signal (SIGTRAP, deliver_fatal_signal);
sigaction (SIGQUIT, &fatal_error_action, 0);
sigaction (SIGILL, &fatal_error_action, 0);
sigaction (SIGTRAP, &fatal_error_action, 0);
#ifdef SIGUSR1
add_user_signal (SIGUSR1, "sigusr1");
#endif