diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-07 01:55:03 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-07 01:55:03 -0700 |
commit | eddb36a7d58b99e43deadcc808347008fe8a8627 (patch) | |
tree | 8e0c4c13dc7b1ecce90af5b6dd78d9425283420e /src/emacs.c | |
parent | 1a4f1e9b4805cd80952946b5f4461eeb467d9509 (diff) | |
download | emacs-eddb36a7d58b99e43deadcc808347008fe8a8627.tar.gz |
* 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/emacs.c')
-rw-r--r-- | src/emacs.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 /* 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 |