From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28542: Temporary failure in name resolution while quitting emacs Date: Mon, 07 Dec 2020 18:01:02 +0200 Message-ID: <83pn3l8v29.fsf@gnu.org> References: <87lfejcdzv.fsf@gnus.org> <83o8jeke73.fsf@gnu.org> <875z5k5yks.fsf@gnus.org> <837dq0gsc7.fsf@gnu.org> <87o8jbxoml.fsf@gnus.org> <83h7p2gbs4.fsf@gnu.org> <875z5hoqx2.fsf@gnus.org> <83pn3per1t.fsf@gnu.org> <874kkzf69l.fsf@gnus.org> <83im9eagm4.fsf@gnu.org> <87r1o1ism8.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35578"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bshanks3@hotmail.com, 28542@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 17:02:24 2020 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 1kmIy0-00099x-1i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 17:02:24 +0100 Original-Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmIxy-0000zF-1I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 11:02:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmIxe-0000y1-As for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 11:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmIxe-0000jF-2M for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 11:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmIxd-00007Q-Uf for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 11:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Dec 2020 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28542 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 28542-submit@debbugs.gnu.org id=B28542.160735688731286 (code B ref 28542); Mon, 07 Dec 2020 16:02:01 +0000 Original-Received: (at 28542) by debbugs.gnu.org; 7 Dec 2020 16:01:27 +0000 Original-Received: from localhost ([127.0.0.1]:55048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmIx5-00088H-2f for submit@debbugs.gnu.org; Mon, 07 Dec 2020 11:01:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmIx1-00080t-7T for 28542@debbugs.gnu.org; Mon, 07 Dec 2020 11:01:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57887) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmIwu-0000Tt-So; Mon, 07 Dec 2020 11:01:17 -0500 Original-Received: from [176.228.60.248] (port=2486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmIwq-0002iy-4X; Mon, 07 Dec 2020 11:01:15 -0500 In-Reply-To: <87r1o1ism8.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 07 Dec 2020 15:43:43 +0100) 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:195248 Archived-At: > From: Lars Ingebrigtsen > Cc: bshanks3@hotmail.com, 28542@debbugs.gnu.org > Date: Mon, 07 Dec 2020 15:43:43 +0100 > > Eli Zaretskii writes: > > > I think it'd be good to have a run_hook_with_timeout function, yes. > > Whether it should be exposed to Lisp, I'm less certain: what would be > > the use case that isn't this single place? > > It is somewhat special-purpose; yes. On the other hand, implementing it > in Lisp is a lot easier, and I guess I could envision people actually > using it for other things, too? So I just put it in subr.el. (But I > did not document it in the manual, because it does not seem to warrant > that.) Beware: calling Lisp when we are about to crash due to a fatal signal could cause more problems than it solves. > > As for zeroing waiting_for_input: it's almost certainly shouldn't be > > part of that, since it should always be zero when Emacs signals an > > error. We do this here because this might be exiting due to a fatal > > signal, in which case all bets are off, and we should better be safe > > than sorry. > > I'm not quite sure I'm reading this paragraph right -- I'm not sure what > "that" in "shouldn't be part of that" refers to here. :-) "That" refers to the function you wanted to provide.