GNU bug report logs - #29955
25.2; stale lock files can hang emacs --batch

Previous Next

Package: emacs;

Reported by: David Bremner <david <at> tethera.net>

Date: Wed, 3 Jan 2018 00:58:01 UTC

Severity: normal

Found in versions 25.2, 24.5

Fixed in versions 26.2, 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: David Bremner <david <at> tethera.net>
Cc: 29955 <at> debbugs.gnu.org
Subject: Re: bug#29955: 25.2; stale lock files can hang emacs --batch
Date: Mon, 22 Jan 2018 18:50:02 -0500
Glenn Morris wrote:

> I note that this also hangs:
>
> emacs -Q --batch \
>    --eval "(add-hook 'kill-emacs-hook (lambda () (error \"foo\")))"

This can be avoided by using safe_run_hooks for Qkill_emacs_hook in
Fkill_emacs. Perhaps that's the right thing to do, if noninteractive?

Would it be correct for interactive mode, too?
As it stands, in interactive mode an error in kill-emacs-hook
will stop Emacs from exiting.
I'm not sure if that is a desirable feature or not...




This bug report was last modified 6 years and 195 days ago.

Previous Next


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