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: Mon, 29 Jan 2024 19:44:43 +0200 Message-ID: <86v87c2fw4.fsf@gnu.org> References: <86y1c82hfb.fsf@gnu.org> <86wmrs2h41.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31358"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68799@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 29 18:45:15 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 1rUVh3-0007pM-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jan 2024 18:45:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUVgn-0000E1-5Y; Mon, 29 Jan 2024 12:44:57 -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 1rUVgl-0000CU-1L for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 12:44:55 -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 1rUVgk-0000aW-Ov for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 12:44:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUVgs-0005g3-Vq for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 12:45:03 -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, 29 Jan 2024 17:45: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.170655030221808 (code B ref 68799); Mon, 29 Jan 2024 17:45:02 +0000 Original-Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 17:45:02 +0000 Original-Received: from localhost ([127.0.0.1]:33380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUVgr-0005fX-EB for submit@debbugs.gnu.org; Mon, 29 Jan 2024 12:45:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUVgp-0005fA-9A for 68799@debbugs.gnu.org; Mon, 29 Jan 2024 12:45:00 -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 1rUVgb-0000Yw-4X; Mon, 29 Jan 2024 12:44:45 -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=x0Dwkkko2vBcb3z5GCfr9VgaWcDeNA7kfkB9qBok0vo=; b=pU7/K/oWVapp LJrs0LX50TE06GtOxV18eJUKZjQ70WABOii3gypQrTJHjU0ya/IHfahUxpVZrf4zjhKWX9rzsyIP0 ByTzsPKzq9A8/UhyU3ttAzgUFnSqDlKezeiZvsAQ5aNVjK6HLO2d1tA/RBb3A2uSLIhN0w/f48jFw 7xcsFdmQ+B+SnRvavend9HHA+im63INc84hM/lMPwnn6jCECyzkYsgC8YQz0mgSDo+OEmoIxMVq/o bdq4KC6BLTMp0hoVDSLmjHxrC6WZ1/wAxitXLX91StXNzYdfLZqPh4jsxYw9XCT8j1NaVbshswYxy lXLdJ/ZzFoxczRmfr+PRIg==; In-Reply-To: (message from Spencer Baugh on Mon, 29 Jan 2024 12:32: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:279137 Archived-At: > From: Spencer Baugh > Cc: 68799@debbugs.gnu.org > Date: Mon, 29 Jan 2024 12:32:00 -0500 > > Eli Zaretskii writes: > > >> So the problem seems to be that somehow server-start succeeds to leave > >> a non-nil server-process variable behind, although testing that is the > >> documented way of telling whether server is running. > > > > Or maybe server-start signals an error, and then the code which shows > > an error message and shuts down Emacs doesn't get run? > > Yes, that's exactly what happens. > > So should we wrap a condition-case around server-start, I suppose? Probably. But perhaps we should also modify server-start so that, when it is called from a daemon, it signals in this case a distinct error, which startup.el could then detect and display a friendly error message.