]> git.eshelyaron.com Git - emacs.git/commitdiff
In CANNOT_DUMP builds, don't prepare for unexec.
authorKen Raeburn <raeburn@raeburn.org>
Wed, 5 Apr 2017 06:48:49 +0000 (02:48 -0400)
committerKen Raeburn <raeburn@raeburn.org>
Thu, 6 Apr 2017 06:10:53 +0000 (02:10 -0400)
Having a command-line argument of "dump" or "bootstrap" would trigger
behavior like not installing signal handlers.  In CANNOT_DUMP modes,
we should get signal handlers installed regardless of whatever funny
file names we decide to edit.

src/emacs.c (main) [CANNOT_DUMP]: Don't enable the "dumping"
alterations to initialization that prepares the process for unexec.

src/emacs.c

index 2b01a37f5ab8ec1557d975c3f224de2821c5427a..9339d60866cbfc7aa00fa1ba90bc9e46f125318e 100644 (file)
@@ -683,8 +683,12 @@ main (int argc, char **argv)
   /* Record (approximately) where the stack begins.  */
   stack_bottom = &stack_bottom_variable;
 
+#ifndef CANNOT_DUMP
   dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0
                             || strcmp (argv[argc - 1], "bootstrap") == 0);
+#else
+  dumping = false;
+#endif
 
   /* True if address randomization interferes with memory allocation.  */
 # ifdef __PPC64__