GNU bug report logs - #47439
27.2; In daemon mode, if after-init-hook errors out, the server does not start

Previous Next

Package: emacs;

Reported by: Gilles <gilles.usenet <at> gmail.com>

Date: Sun, 28 Mar 2021 01:02:02 UTC

Severity: normal

Found in version 27.2

Full log


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

From: Gilles <gilles.usenet <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 47439 <at> debbugs.gnu.org
Subject: Re: bug#47439: 27.2; In daemon mode, if after-init-hook errors out,
 the server does not start
Date: Sun, 28 Mar 2021 19:04:44 +0200
Looking at the code in startup.el, I think it would be ok to let
errors go uncaught (it would avoid any complication to debug those
errors), but the daemon should start anyway. How about putting most of
command-line in an unwind-protect? Or moving the daemon start outside
the unwind-protect in normal-top-level?

-- Gilles

On Sun, 28 Mar 2021 at 16:56, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > You mean, catching the error if we are starting the daemon? that's one
> > possibility, assuming that the error message will then be visible when
> > the first client connects.
> >
> > In non-daemon mode I think we should keep not catching errors.
>
> Yup, and yup.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 47 days ago.

Previous Next


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