GNU bug report logs - #31521
[PATCH] * src/emacs.c (kill-emacs): notify systemd

Previous Next

Package: emacs;

Reported by: Lucas Werkmeister <mail <at> lucaswerkmeister.de>

Date: Fri, 18 May 2018 20:28:02 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 31498

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31521 in the body.
You can then email your comments to 31521 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31521; Package emacs. (Fri, 18 May 2018 20:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lucas Werkmeister <mail <at> lucaswerkmeister.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 18 May 2018 20:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lucas Werkmeister <mail <at> lucaswerkmeister.de>
To: bug-gnu-emacs <at> gnu.org
Cc: Lucas Werkmeister <mail <at> lucaswerkmeister.de>
Subject: [PATCH] * src/emacs.c (kill-emacs): notify systemd
Date: Fri, 18 May 2018 22:27:27 +0200
---

Notes:
    This doesn’t do very much beyond changing what you see in `systemctl
    status`, but I figure it doesn’t hurt either. (But feel free to
    reject the patch if you disagree, I won’t mind.)

 src/emacs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/emacs.c b/src/emacs.c
index f25e612664..d204dadb79 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2017,6 +2017,10 @@ all of which are called before Emacs is actually killed.  */
 {
   int exit_code;
 
+#ifdef HAVE_LIBSYSTEMD
+  sd_notify(0, "STOPPING=1");
+#endif /* HAVE_LIBSYSTEMD */
+
   /* Fsignal calls emacs_abort () if it sees that waiting_for_input is
      set.  */
   waiting_for_input = 0;
-- 
2.17.0





Severity set to 'wishlist' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 07 Jun 2018 13:10:03 GMT) Full text and rfc822 format available.

Merged 31498 31521. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 26 Jul 2018 01:14:04 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 26 Jul 2018 01:14:04 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 31498 <at> debbugs.gnu.org and Lucas Werkmeister <mail <at> lucaswerkmeister.de> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 26 Jul 2018 01:14:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 23 Aug 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.