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: Sat, 24 Feb 2024 11:20:46 +0200 Message-ID: <86msrqz09d.fsf@gnu.org> References: <865xysr17s.fsf@gnu.org> <86mss4p83n.fsf@gnu.org> <86jzn8p2px.fsf@gnu.org> <86frxwp1uy.fsf@gnu.org> <86sf1vxgy4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68799-done@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 Sat Feb 24 10:21:57 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 1rdoEH-0008qc-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Feb 2024 10:21:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdoDz-0005Ff-La; Sat, 24 Feb 2024 04:21:39 -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 1rdoDy-0005F6-4i for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 04:21:38 -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 1rdoDx-0001nm-Sg for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 04:21:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdoEL-0006cf-Rw for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 04:22:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Feb 2024 09:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68799 X-GNU-PR-Package: emacs Mail-Followup-To: 68799@debbugs.gnu.org, eliz@gnu.org, sbaugh@janestreet.com Original-Received: via spool by 68799-done@debbugs.gnu.org id=D68799.170876648625335 (code D ref 68799); Sat, 24 Feb 2024 09:22:01 +0000 Original-Received: (at 68799-done) by debbugs.gnu.org; 24 Feb 2024 09:21:26 +0000 Original-Received: from localhost ([127.0.0.1]:41874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdoDi-0006aJ-Hi for submit@debbugs.gnu.org; Sat, 24 Feb 2024 04:21:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdoDf-0006Zq-0n for 68799-done@debbugs.gnu.org; Sat, 24 Feb 2024 04:21:20 -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 1rdoDA-0001dX-Su; Sat, 24 Feb 2024 04:20:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QHF7ZbRtspKLQb51dw4faAK4N2J3Smu7/mucwLUhOlE=; b=CqC+78aKyigd46rBchTC 1Q9Ls3CQtVCrcuSyPaamW4hJlDf9qQPxZ0ivmBvbu0YU2ZGL4FNsCGANMiZw0N4rOE4x9nhHJFX8M XhL32YBfFhM1UQSkU+PK58jPiicYwV2fSFVQJmnvWi+1qePVbnA46CQfDc7xeEkY2sN4Qxz1rFlb2 kVVpTarImbPez21/sm25rH6gqZXoRwyff4VdJYfr+5X4/hfm9Fk3BdTJDD3q1ZczUr7PpQIdDXkBD anLL21fyZ1VgJeSshnUdOYlPruAKdODtFFvd+NdoQN32xTe+nYrBm18OrGAsw2BhTZtyPpqlNawnZ LmT06tjyEpB4LA==; In-Reply-To: (message from Spencer Baugh on Wed, 14 Feb 2024 11:11:10 -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:280531 Archived-At: > From: Spencer Baugh > Cc: 68799@debbugs.gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org > Date: Wed, 14 Feb 2024 11:11:10 -0500 > > Eli Zaretskii writes: > > >> From: Spencer Baugh > >> Cc: 68799@debbugs.gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org > >> Date: Tue, 13 Feb 2024 15:20:21 -0500 > >> > >> To be clear, the patch I posted which checks DAEMON_RUNNING *does* solve > >> that. > >> > >> $ ./src/emacs -Q --fg-daemon=/tmp/foo > >> Starting Emacs daemon. > >> ‘/tmp’ is not a safe directory because it is not owned by you (owner = root (0)) > >> $ > >> > >> (which previously would have hung) > >> > >> The issue now is solely that the printed error message is maybe not > >> informative enough. > >> > >> So how about the following diff, which changes the output to: > >> > >> $ ./src/emacs -Q --fg-daemon=/tmp/foo > >> Starting Emacs daemon. > >> Unable to start daemon: ‘/tmp’ is not a safe directory because it is not owned by you (owner = root (0)) > > > > That's an improvement, but maybe it will be even better if you append > > "; exiting" at the end of the message? > > Can do. Here's the patch, which should be applied in addition to the > DAEMON_RUNNING patch I posted earlier. Thanks, installed.