bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#2520: 23.0.91; Dies on SIGHUP


From: Stefan Monnier
Subject: bug#2520: 23.0.91; Dies on SIGHUP
Date: Fri, 22 Oct 2021 18:31:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-10-22 17:06:09] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Do we have a `M-x <something>` to re-read the init file?
>> If not, why would it more important to offer a way to do it via SIGUSR?
> The use case is that you're ssh-ing in to an Emacs running on a machine,
> and you want to communicate with that Emacs (because it has all the
> information you absolutely need right now in *scratch*), but you haven't
> set up emacs-server on it yet.  (Any similarity to something that's
> happened to me a dozen times is purely coincidental.) 
> So if you could put (server-start) in ~/.emacs and send it SIGUSR,
> that'd be nice.

So maybe rather than load the init file, we wan to use SIGUSR1 cause
Emacs to read ~/.emacs.d/sigusr1.el ?


        Stefan


PS: FWIW, when this happens, I use gdb to attach to the process
    and "call (intern ("server-mode"));" from there.
[ This said, it doesn't happen often, because I do enable `server-mode`
  in my init file.  ]






reply via email to

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