mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Fix dumping signal-handler data
* src/sysdep.c (init_signals): Don't install signal handlers while dumping only with unexec, as pdumper doesn't dump static data of signal handlers. See https://lists.gnu.org/archive/html/emacs-devel/2024-04/msg00539.html for the details.
This commit is contained in:
parent
6ae835c924
commit
d22c260cb7
@ -2037,10 +2037,10 @@ init_signals (void)
|
||||
main_thread_id = pthread_self ();
|
||||
#endif
|
||||
|
||||
/* Don't alter signal handlers if dumping. On some machines,
|
||||
changing signal handlers sets static data that would make signals
|
||||
fail to work right when the dumped Emacs is run. */
|
||||
if (will_dump_p ())
|
||||
/* Don't alter signal handlers if dumping with unexec. On some
|
||||
machines, changing signal handlers sets static data that would make
|
||||
signals fail to work right when the dumped Emacs is run. */
|
||||
if (will_dump_with_unexec_p ())
|
||||
return;
|
||||
|
||||
sigfillset (&process_fatal_action.sa_mask);
|
||||
|
Loading…
Reference in New Issue
Block a user