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#68799: 30.0.50; emacs --fg-daemon fails silently if server-start fails Date: Tue, 13 Feb 2024 22:04:37 +0200 Message-ID: <86frxwp1uy.fsf@gnu.org> References: <865xysr17s.fsf@gnu.org> <86mss4p83n.fsf@gnu.org> <86jzn8p2px.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68799@debbugs.gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 13 21:11:58 2024 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 1rZz8I-0001Wp-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Feb 2024 21:11:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZz2Y-0000CB-VL; Tue, 13 Feb 2024 15:06:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZz2J-0008B1-W0 for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 15:05:50 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZz2H-0002bI-7w for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 15:05:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZz2Y-0005Qa-Hb for bug-gnu-emacs@gnu.org; Tue, 13 Feb 2024 15:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Feb 2024 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68799 X-GNU-PR-Package: emacs Original-Received: via spool by 68799-submit@debbugs.gnu.org id=B68799.170785470720787 (code B ref 68799); Tue, 13 Feb 2024 20:06:02 +0000 Original-Received: (at 68799) by debbugs.gnu.org; 13 Feb 2024 20:05:07 +0000 Original-Received: from localhost ([127.0.0.1]:47615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZz1f-0005PD-9b for submit@debbugs.gnu.org; Tue, 13 Feb 2024 15:05:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZz1b-0005OY-PW for 68799@debbugs.gnu.org; Tue, 13 Feb 2024 15:05:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZz1E-0002KG-Jl; Tue, 13 Feb 2024 15:04:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MzPpKPLUM3cGzoJgQ1DiOFKvW0MfdnxVrF3F3GpxjzI=; b=GKWp0aYldmB8 V6k2FcwmbwC6g6oi10k8g6oYbsxaIIetJtMmuIpj2KN3b6WLN9MKT4asgLQG3IcFsrRTFtaY8cb7H lQ0uB9M6qTHKZIWVmu8M3yqGwBNbYKVQ/5NXiThk1kiw0UCLhadi2lWvICvEE6MIdL6RgPf6me7Hw wbnb6hxEdvT9RKj3LhpKfuBSYEUsBVNyvWfB5Dv1Ce12twN0cp3vlMHD44Gdnjz78+sPahv+nadwW Y8CFfNI/6ZS0ZoeSMvrqMFlGlbBFW041nITHtnWfRPbNy+X6rDG5ABW4gJYlTiFxhcZ2Y/zVY8mXf AA6Rlo1ytT3VcbJWka8Qbw==; In-Reply-To: (message from Spencer Baugh on Tue, 13 Feb 2024 15:02:00 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279979 Archived-At: > From: Spencer Baugh > Cc: 68799@debbugs.gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org > Date: Tue, 13 Feb 2024 15:02:00 -0500 > > > I think your patch will prevent us from doing that because the code > > which you suggest to patch with DAEMON_RUNNING will kill Emacs before > > startup.el gets the chance to show the error message, because > > daemon-initialized has not yet been run by that time. > > Nope, it won't prevent us from doing that. My patch affects only > *uncaught* errors, and improves behavior when errors are uncaught. The > separate change we will make to the code you posted is to *catch more > errors*. A change to the behavior for uncaught errors doesn't interfere > with us deciding to catch more errors. Defining an explicit error > handler, of course, completely overrides the default handle for uncaught > errors. So they're totally separate patches. Then let's see them together, so we understand what happens in each and every case. This bug started from a silent failure to start the server, so its solution should solve at least that.