Commit 8ca2bd1c authored by Ken Raeburn's avatar Ken Raeburn

In CANNOT_DUMP builds, don't prepare for unexec.

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.
parent dd09e72e
......@@ -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__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment