From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#2520: 23.0.91; Dies on SIGHUP Date: Fri, 22 Oct 2021 18:31:05 -0400 Message-ID: References: <87muenjj9x.fsf@gnus.org> <87lfu7nq1t.fsf@igel.home> <8736gff81m.fsf@gnus.org> <878rylf93b.fsf@gnus.org> <87ilxpcd5q.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29962"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Andreas Schwab , rfrancoise@debian.org, Stefan Kangas , cmr.Pent@gmail.com, 2520@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 00:32:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1me35A-0007Zu-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 00:32:12 +0200 Original-Received: from localhost ([::1]:51616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me359-0006VH-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 18:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me352-0006V4-PA for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 18:32:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1me350-0003Gb-75 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 18:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1me34z-00010J-T3 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 18:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2021 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2520 X-GNU-PR-Package: emacs Original-Received: via spool by 2520-submit@debbugs.gnu.org id=B2520.16349418803796 (code B ref 2520); Fri, 22 Oct 2021 22:32:01 +0000 Original-Received: (at 2520) by debbugs.gnu.org; 22 Oct 2021 22:31:20 +0000 Original-Received: from localhost ([127.0.0.1]:33910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me34J-0000zA-Md for submit@debbugs.gnu.org; Fri, 22 Oct 2021 18:31:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me34F-0000yr-5f for 2520@debbugs.gnu.org; Fri, 22 Oct 2021 18:31:18 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4338C100355; Fri, 22 Oct 2021 18:31:09 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A984D1000F8; Fri, 22 Oct 2021 18:31:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1634941867; bh=kCBMSZcv+pRJEYQERLH2/PwkV2eag1PHWmiecxAfWV0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=C8qbvt4EOFJMolwv/R87HSdo8a5ZmLJYlsmnXfbs4Ec4GV+8sm9exqKiUWuoL6wNK nMCTChcJMGl7F8POvYdMXWpWnN/Zdpx9qmYfOLxDxvZCCRu8AGoMzfg67c9y37GIUL QEJg73RG/wiIIdEiJJhNcBdLntGUvkDe5F0gzwqjFtSt7A+L8SCG5m/+lSnaOVsGC4 7cmdYfN1lLp08N4kB3iAw3IWBF5DdCKHhrruBtWq45T19+v/AxmFGGOcrNqq2rE10l CB4XhAa9P0YFBmV/6Jrrxt8ugNfA+KELrGfJhRKOzrlyeZX4Q4Dr4jlv+dXSIO5Rje TdhmpZ59Q0zLg== Original-Received: from milanesa (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5EF971201B6; Fri, 22 Oct 2021 18:31:07 -0400 (EDT) In-Reply-To: <87ilxpcd5q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 22 Oct 2021 17:06:09 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217918 Archived-At: Lars Ingebrigtsen [2021-10-22 17:06:09] wrote: > Stefan Monnier writes: >> Do we have a `M-x ` 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. ]