From: Alan Third <alan@idiocy.org>
To: 11049@debbugs.gnu.org
Subject: bug#11049: [PATCH v2] Block input to prevent crash on SIGHUP (bug#11049)
Date: Sat, 28 May 2016 15:00:11 +0100 [thread overview]
Message-ID: <20160528140011.GA22831@breton.holly.idiocy.org> (raw)
In-Reply-To: <20160527230138.GA22000@breton.holly.idiocy.org>
* src/emacs.c (Fkill-emacs): Block input while exiting.
---
src/emacs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/emacs.c b/src/emacs.c
index 3e0cf59..fb01573 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1941,6 +1941,13 @@ all of which are called before Emacs is actually killed. */
x_clipboard_manager_save_all ();
#endif
+#ifdef HAVE_NS
+ /* Crashes trying to process input while quitting. I'm not bothering
+ to unblock input since, well, we're quitting. If an unblock_input
+ is required it will have to go after Fexpand_file_name below. */
+ block_input();
+#endif
+
shut_down_emacs (0, (STRINGP (arg) && !feof (stdin)) ? arg : Qnil);
#ifdef HAVE_NS
--
Helps if I attach a patch that doesn't break the build.
--
Alan Third
next prev parent reply other threads:[~2016-05-28 14:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 8:42 bug#11049: 24.0.93; SIGABRT when closing terminal, emacs running in TTY mode Rotem
2016-05-27 23:01 ` bug#11049: [PATCH] Block input to prevent crash on SIGHUP (bug#11049) Alan Third
2016-05-28 14:00 ` Alan Third [this message]
2016-06-26 0:42 ` bug#11049: [PATCH] Prevent NS event loop being re-entered (bug#11049) Alan Third
2016-07-07 19:54 ` Alan Third
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160528140011.GA22831@breton.holly.idiocy.org \
--to=alan@idiocy.org \
--cc=11049@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.