Skip to content

Commit 8ca2bd1

Browse files
author
Ken Raeburn
committed
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.
1 parent dd09e72 commit 8ca2bd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/emacs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,12 @@ main (int argc, char **argv)
683683
/* Record (approximately) where the stack begins. */
684684
stack_bottom = &stack_bottom_variable;
685685

686+
#ifndef CANNOT_DUMP
686687
dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0
687688
|| strcmp (argv[argc - 1], "bootstrap") == 0);
689+
#else
690+
dumping = false;
691+
#endif
688692

689693
/* True if address randomization interferes with memory allocation. */
690694
# ifdef __PPC64__

0 commit comments

Comments
 (0)