]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dumping signal-handler data
authorEli Zaretskii <eliz@gnu.org>
Tue, 23 Apr 2024 07:02:39 +0000 (10:02 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 23 Apr 2024 10:13:57 +0000 (12:13 +0200)
* 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)

src/sysdep.c

index cf2985b4b89eb694f919bbd07ef3805938f85238..07237885cb9d07cca226064249afe317a89ef633 100644 (file)
@@ -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);