emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8ca2bd1 3/4: In CANNOT_DUMP builds, don't prepare f


From: Ken Raeburn
Subject: [Emacs-diffs] master 8ca2bd1 3/4: In CANNOT_DUMP builds, don't prepare for unexec.
Date: Thu, 6 Apr 2017 02:12:37 -0400 (EDT)

branch: master
commit 8ca2bd1ce7eebaf3b995786d9f9f61907ebbb060
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>

    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.
---
 src/emacs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/emacs.c b/src/emacs.c
index 2b01a37..9339d60 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -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__



reply via email to

[Prev in Thread] Current Thread [Next in Thread]