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: Wed, 14 Feb 2024 16:23:47 +0200 Message-ID: <86sf1vxgy4.fsf@gnu.org> References: <865xysr17s.fsf@gnu.org> <86mss4p83n.fsf@gnu.org> <86jzn8p2px.fsf@gnu.org> <86frxwp1uy.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="15227"; 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 Wed Feb 14 15:27:13 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 1raGEC-0003jS-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Feb 2024 15:27:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raGDm-0007LX-Hi; Wed, 14 Feb 2024 09:26:46 -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 1raGDk-0007Fz-AU for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 09:26:44 -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 1raGDj-0004cN-UV for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 09:26:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raGE1-00017N-Tb for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 09:27: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: Wed, 14 Feb 2024 14:27:01 +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.17079207884254 (code B ref 68799); Wed, 14 Feb 2024 14:27:01 +0000 Original-Received: (at 68799) by debbugs.gnu.org; 14 Feb 2024 14:26:28 +0000 Original-Received: from localhost ([127.0.0.1]:50897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raGDT-00016Y-SU for submit@debbugs.gnu.org; Wed, 14 Feb 2024 09:26:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raGDR-00016K-IW for 68799@debbugs.gnu.org; Wed, 14 Feb 2024 09:26:26 -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 1raGAw-0003iy-Mm; Wed, 14 Feb 2024 09:23:50 -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=hf5qBekvVimH4hWLfU7RBPeUAGE5eTkia4NybwWGKn0=; b=cbd7MV/r4DA1pRAR130A CmMtf9pMCGsru6E/7XmeWV4IwfhD20Gt1/oJyyXGhp7tWLasCHWgQGR2RYgcuwMvVdQ9001Lry0S2 8StxiZB7aR0yJG3lPD/xV7DDKFKux4bCLXc8+A2ZKkETsfpFOn/vj/MGQH2gU4ycqihhu9/BDdy/e 9gg4H5oahEBIC1yc/Qyih7uwC/5T4Rhb24oLsg0wvV/AiseqLmSdq3L7p9kKwbOSOOYZiCUzJT+7T dsRR+cW7MmVrvbDpMe88Elapm1uDKADikYPQK/xLb4Np4cZDpv9DoT6bR2vn2kKTe6auR2acbD0ux D4R4Bg9jBD646A==; In-Reply-To: (message from Spencer Baugh on Tue, 13 Feb 2024 15:20:21 -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:280005 Archived-At: > 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?