* 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.
(cherry picked from commit
d22c260cb7d43a27632750920f5238ed7947ae8d)
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);