diff options
| author | Ken Raeburn | 2017-04-05 02:48:49 -0400 |
|---|---|---|
| committer | Ken Raeburn | 2017-04-06 02:10:53 -0400 |
| commit | 8ca2bd1ce7eebaf3b995786d9f9f61907ebbb060 (patch) | |
| tree | fb17a907553a16782845c6b3101ef2b4d3467ee3 | |
| parent | dd09e72ed6b1c6ba5c584e7aa32d98437d96326a (diff) | |
| download | emacs-8ca2bd1ce7eebaf3b995786d9f9f61907ebbb060.tar.gz emacs-8ca2bd1ce7eebaf3b995786d9f9f61907ebbb060.zip | |
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.
| -rw-r--r-- | src/emacs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 2b01a37f5ab..9339d60866c 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -683,8 +683,12 @@ main (int argc, char **argv) | |||
| 683 | /* Record (approximately) where the stack begins. */ | 683 | /* Record (approximately) where the stack begins. */ |
| 684 | stack_bottom = &stack_bottom_variable; | 684 | stack_bottom = &stack_bottom_variable; |
| 685 | 685 | ||
| 686 | #ifndef CANNOT_DUMP | ||
| 686 | dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 | 687 | dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 |
| 687 | || strcmp (argv[argc - 1], "bootstrap") == 0); | 688 | || strcmp (argv[argc - 1], "bootstrap") == 0); |
| 689 | #else | ||
| 690 | dumping = false; | ||
| 691 | #endif | ||
| 688 | 692 | ||
| 689 | /* True if address randomization interferes with memory allocation. */ | 693 | /* True if address randomization interferes with memory allocation. */ |
| 690 | # ifdef __PPC64__ | 694 | # ifdef __PPC64__ |