GNU logs - #68255, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68255: 28.2; Can't connect to emacs daemon after logging out and back in.
Resent-From: Jeremy Phelps <jeremyphelps077@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 05 Jan 2024 08:39:02 +0000
Resent-Message-ID: <handler.68255.B.17044438842033 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 68255
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 68255 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17044438842033
          (code B ref -1); Fri, 05 Jan 2024 08:39:02 +0000
Received: (at submit) by debbugs.gnu.org; 5 Jan 2024 08:38:04 +0000
Received: from localhost ([127.0.0.1]:56334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rLfiN-0000Wh-0l
	for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 03:38:04 -0500
Received: from lists.gnu.org ([2001:470:142::17]:32782)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jeremyphelps077@HIDDEN>) id 1rLTlj-0007ak-UN
 for submit <at> debbugs.gnu.org; Thu, 04 Jan 2024 14:52:47 -0500
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 <jeremyphelps077@HIDDEN>)
 id 1rLTla-0005bu-P2
 for bug-gnu-emacs@HIDDEN; Thu, 04 Jan 2024 14:52:34 -0500
Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <jeremyphelps077@HIDDEN>)
 id 1rLTlY-0005Cp-Nj
 for bug-gnu-emacs@HIDDEN; Thu, 04 Jan 2024 14:52:34 -0500
Received: by mail-vs1-xe2a.google.com with SMTP id
 ada2fe7eead31-4674ca1a2dbso195714137.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 04 Jan 2024 11:52:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704397951; x=1705002751; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=ZTr2nMeX4BDlA6HzObX5DP0dDFo3+rLIdEyIDVVn1n8=;
 b=CfNHA0KGCStB/YHyTKJNBphq2BJSEPcbCRn4zVZ27zMuEV3xdvC6sdqMKo5Xv1TB2b
 2Oc/T1nMIRPMfTSkOXUrdOxCh1g+WdPeTt3PFmXo0maEyZgU30dnNgJ/zh81JW4ZhQwT
 KeL/4MzfddZSxyX1c7beFDjEzwi0XMXcqgJu0mRnA+knCuRortyjTkntkDVlniDX5hBz
 TO6/kKr6HjrikWuKK4LbxTZuFskx951Z3jA/j8KmjpPFe7xr2LiHsJcRltkOTXlE3WoE
 86wFvbGQLBb0hnbb7hrljh4BVgY249N5VCQa2+BO3QQfq50CNVAo+Oyno2KHyzdGdS11
 8JBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704397951; x=1705002751;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=ZTr2nMeX4BDlA6HzObX5DP0dDFo3+rLIdEyIDVVn1n8=;
 b=XZVQ6QJnp0UjdsE5WXNyUqPOY1pEWnVmyIPhtydL5BrBgr90vmEi1jb6BBRIVV8ByN
 8iP35mO2Bzw6bgVaJFyEf197on29PF9oSNZXmgCf+9XxeM/tW7w5lTnZ276goziH9pAZ
 waxbk/p/nUEBtItDlIA6fw7+lYGPMCI2uCK0B7l+uH48NCkhs69GYKI9G4/mmLBdyvgM
 dy9uN5a0HCDRiCp+IkNYhbYhljChiWvSw7d76x9zzunxVEUsafTkQzB/RCURty/0sald
 Q9SKeX0BOzS86fbKBTl56aFtzcaqMzLyMhT0ABRGnOjbukSrW7CeSRxS7gzIPcTHm3Ru
 KHPA==
X-Gm-Message-State: AOJu0Yy6/2A0YzWOqZNpWltyYN0aikbu7aP/DBSOyjGLY7LKmcpJSxzg
 rpyMGfm/vyW7oV3oS6/p25DhT6TqD9T36U5StOJEFMPn13c=
X-Google-Smtp-Source: AGHT+IGtrPjEkNjAZGI+GQ1nvxOMP65CZdt+ZiSgVT/yjTvYv7Z8iTz+ZHCJYGHdGawz43IsR9dcES69vUCrMVoNCmE=
X-Received: by 2002:a05:6102:a52:b0:467:ac56:12d3 with SMTP id
 i18-20020a0561020a5200b00467ac5612d3mr806791vss.23.1704397950774; Thu, 04 Jan
 2024 11:52:30 -0800 (PST)
MIME-Version: 1.0
From: Jeremy Phelps <jeremyphelps077@HIDDEN>
Date: Thu, 4 Jan 2024 14:52:17 -0500
Message-ID: <CA+-17hVu9_kOZi=gRm+WuuTQwZ1tTSA5GoEoPhZ4FB8mCM9Qtw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a;
 envelope-from=jeremyphelps077@HIDDEN; helo=mail-vs1-xe2a.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: 1. Configure your session manager not to kill leftover user
 processes after logging out. If you're using elogind, this can be done by
 editing /etc/elogind/logind.conf and setting KillUserProcesses=no. [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (jeremyphelps077[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (jeremyphelps077[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-Mailman-Approved-At: Fri, 05 Jan 2024 03:38:01 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

1. Configure your session manager not to kill leftover user processes
   after logging out. If you're using elogind, this can be done by
   editing /etc/elogind/logind.conf and setting KillUserProcesses=no.
   Same process for systemd-logind, except the file is located
   at /etc/systemd/logind.conf.
2. Log into a new session and run "emacs --daemon".
3. Log out of all sessions for that user. This causes the directory
   named in $XDG_RUNTIME_DIR to be deleted, and with it, the Emacs
   daemon's socket.
4. Log back in.
5. Observe that the emacs daemon's process is still there, and that
   its socket is gone.

Working around this problem is difficult because the XDG_RUNTIME_DIR
variable whose use causes this problem is referenced in two places:

1. The "server-socket-dir" variable in Elisp. This is fairly easy to
   change because Emacs can take you right to the definition.
2. The emacsclient binary. Changing the behavior here requires
   editing emacsclient.c, recompiling, and installing the resulting
   binary. Except it's too hard to get Emacs to build on modern
   Linux distros, so I hex-edited the emacsclient binary instead,
   NUL-ing out all strings containing "XDG_RUNTIME_DIR".

In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,
cairo version 1.16.0)
 of 2023-05-13, modified by Debian built on x86-ubc-01
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Devuan GNU/Linux 5 (daedalus)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/28.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/28.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/28.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/28.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --with-cairo --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -ffile-prefix-map=/build/emacs-mPr7Vr/emacs-28.2+1=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/elpa/slime-2.27/slime-tests hides
/usr/share/emacs/site-lisp/elpa-src/slime-2.27/slime-tests
/usr/share/emacs/site-lisp/elpa/slime-2.27/slime hides
/usr/share/emacs/site-lisp/elpa-src/slime-2.27/slime
/usr/share/emacs/site-lisp/elpa/slime-2.27/slime-pkg hides
/usr/share/emacs/site-lisp/elpa-src/slime-2.27/slime-pkg
/usr/share/emacs/site-lisp/elpa/slime-2.27/slime-autoloads hides
/usr/share/emacs/site-lisp/elpa-src/slime-2.27/slime-autoloads
/home/jlp/.emacs.d/elpa/transient-20200107.2156/transient hides
/usr/share/emacs/28.2/lisp/transient

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils misearch multi-isearch apropos face-remap
cus-edit cus-start cus-load wid-edit ob-ruby ob-lisp ob-clojure ob-awk
ob-python python tramp-sh tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat parse-time ls-lisp ob-scheme
ob-shell shell org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-footnote org-src ob-comint org-pcomplete pcomplete org-list
org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval
org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat
org-macs org-loaddefs format-spec find-func cal-menu calendar
cal-loaddefs iswitchb slime-fancy slime-indentation slime-cl-indent
cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu
slime-references slime-compiler-notes-tree slime-scratch
slime-presentations bridge slime-macrostep macrostep slime-mdot-fu
slime-enclosing-context slime-fuzzy slime-fancy-trace
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
slime-repl elp slime-parse slime compile text-property-search etags
fileloop generator xref project arc-mode archive-mode noutline outline
pp comint ansi-color ring hyperspec thingatpt image+ image-file
image-converter unicode-math-input quail comp comp-cstr rx git-blame
amber-theme cl-extra help-mode cyberpunk-theme rainbow-delimiters
easy-mmode yaml-mode derived edmacro kmacro warnings advice cl
finder-inf info slime-autoloads package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 480397 22320)
 (symbols 48 28109 1)
 (strings 32 128262 12974)
 (string-bytes 1 4201587)
 (vectors 16 44072)
 (vector-slots 8 750050 47045)
 (floats 8 200 256)
 (intervals 56 760 0)
 (buffers 992 13))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jeremy Phelps <jeremyphelps077@HIDDEN>
Subject: bug#68255: Acknowledgement (28.2; Can't connect to emacs daemon
 after logging out and back in.)
Message-ID: <handler.68255.B.17044438842033.ack <at> debbugs.gnu.org>
References: <CA+-17hVu9_kOZi=gRm+WuuTQwZ1tTSA5GoEoPhZ4FB8mCM9Qtw@HIDDEN>
X-Gnu-PR-Message: ack 68255
X-Gnu-PR-Package: emacs
Reply-To: 68255 <at> debbugs.gnu.org
Date: Fri, 05 Jan 2024 08:39:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 68255 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
68255: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68255
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68255: 28.2; Can't connect to emacs daemon after logging out and back in.
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 05 Jan 2024 11:49:02 +0000
Resent-Message-ID: <handler.68255.B68255.170445529321878 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68255
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Jeremy Phelps <jeremyphelps077@HIDDEN>
Cc: 68255 <at> debbugs.gnu.org
Received: via spool by 68255-submit <at> debbugs.gnu.org id=B68255.170445529321878
          (code B ref 68255); Fri, 05 Jan 2024 11:49:02 +0000
Received: (at 68255) by debbugs.gnu.org; 5 Jan 2024 11:48:13 +0000
Received: from localhost ([127.0.0.1]:56563 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rLigO-0005gl-PO
	for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 06:48:13 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39192)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rLigL-0005fv-8M
 for 68255 <at> debbugs.gnu.org; Fri, 05 Jan 2024 06:48:11 -0500
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 <eliz@HIDDEN>)
 id 1rLigB-0006mT-D1; Fri, 05 Jan 2024 06:47:59 -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=CUGv6Ozi+imTAJI9TdGMJ6w7BtQ0iP0F+mvJ5SW3agM=; b=q+yQteZqMI5I
 B7nyjDR2OtkJLH2inUyEJG4prxvwxx++tpYZw6GDuuXg6A1bw1uNJaYHNMTuC5jUvBm2A6nKyuklj
 Vyu7+dgcxJE1R7k/DYLmwVSxyafyj0r5ZNwCiFwaiMG1neDsy4T3rwZ8a89H8PkM+mFc+Gp5YzUNn
 rVL1uvMjKrjCEFZLPsYlC+JRp4okrNViDO9r2e+0JDMgSkcFe996u653tVM/30/CVh46ZLd22a+je
 eVUPU8tNjqB34SdQHzQZrNKQzQYxIUhbZq/rg5+sCSjIDZqPD+AwWFmyUAf2dWU3+lQfrdg3N5qNI
 7vaAS3kuqiNp115NEkDnow==;
Date: Fri, 05 Jan 2024 13:47:46 +0200
Message-Id: <83zfxkuhlp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CA+-17hVu9_kOZi=gRm+WuuTQwZ1tTSA5GoEoPhZ4FB8mCM9Qtw@HIDDEN>
 (message from Jeremy Phelps on Thu, 4 Jan 2024 14:52:17 -0500)
References: <CA+-17hVu9_kOZi=gRm+WuuTQwZ1tTSA5GoEoPhZ4FB8mCM9Qtw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Jeremy Phelps <jeremyphelps077@HIDDEN>
> Date: Thu, 4 Jan 2024 14:52:17 -0500
> 
> 1. Configure your session manager not to kill leftover user processes
>    after logging out. If you're using elogind, this can be done by
>    editing /etc/elogind/logind.conf and setting KillUserProcesses=no.
>    Same process for systemd-logind, except the file is located
>    at /etc/systemd/logind.conf.
> 2. Log into a new session and run "emacs --daemon".
> 3. Log out of all sessions for that user. This causes the directory
>    named in $XDG_RUNTIME_DIR to be deleted, and with it, the Emacs
>    daemon's socket.
> 4. Log back in.
> 5. Observe that the emacs daemon's process is still there, and that
>    its socket is gone.
> 
> Working around this problem is difficult because the XDG_RUNTIME_DIR
> variable whose use causes this problem is referenced in two places:
> 
> 1. The "server-socket-dir" variable in Elisp. This is fairly easy to
>    change because Emacs can take you right to the definition.
> 2. The emacsclient binary. Changing the behavior here requires
>    editing emacsclient.c, recompiling, and installing the resulting
>    binary. Except it's too hard to get Emacs to build on modern
>    Linux distros, so I hex-edited the emacsclient binary instead,
>    NUL-ing out all strings containing "XDG_RUNTIME_DIR".

I'm not sure I understand why you cannot successfully use the daemon
in the situation you described.  Basically, what your scenario means
is that XDG_RUNTIME_DIR cannot be trusted because it is ephemeral, so
you need to tell Emacs and emacsclient to use a directory for a socket
in a way that doesn't use XDG_RUNTIME_DIR.  Is that correct?

If the above analysis is correct, then you can customize 'server-name'
to be an absolute file name of the directory where you want the socket
to be created, and invoke emacsclient with the --socket-name=NAME
option (or set EMACS_SOCKET_NAME=NAME in the environment), where NAME
is the same directory as in the value of 'server-name' option.  Did
you try that?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68255: 28.2; Can't connect to emacs daemon after logging out and back in.
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 06 Jan 2024 06:55:02 +0000
Resent-Message-ID: <handler.68255.B68255.170452408722682 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68255
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Jeremy Phelps <jeremyphelps077@HIDDEN>
Cc: 68255 <at> debbugs.gnu.org
Received: via spool by 68255-submit <at> debbugs.gnu.org id=B68255.170452408722682
          (code B ref 68255); Sat, 06 Jan 2024 06:55:02 +0000
Received: (at 68255) by debbugs.gnu.org; 6 Jan 2024 06:54:47 +0000
Received: from localhost ([127.0.0.1]:58444 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rM0Zz-0005tm-Gj
	for submit <at> debbugs.gnu.org; Sat, 06 Jan 2024 01:54:47 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:36708)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rM0Zw-0005ta-SJ
 for 68255 <at> debbugs.gnu.org; Sat, 06 Jan 2024 01:54:46 -0500
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 <eliz@HIDDEN>)
 id 1rM0Zm-0005p4-KI; Sat, 06 Jan 2024 01:54:34 -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=AYJsGNd1NPslQCWSD7Dw73hifdUgj5uMKc3t3hcAYiI=; b=jOvvVdDDNIUo
 SDMNKno2py751tmd4IDBfAHzZjgoHRyYUd1zf/NBZF7IFS4cX4DMzSFuKwkTef2zWuXiS0KSm5CNO
 7LMLLLCLsVH0u0ZIX83cmZsViotlN0yytIDz09td1zzzFsASgGdO5ski6m6TvZpXjH7V93CCsiKO7
 MaEwAg/vPFcfE95vzwx6CvBIEZdkp1WUZlWQBehvRKvcyf9bSdyNJhk44+pVLvV5pRxsj2ghdeqE3
 BqlsEOsAULGY8vGydKxdtHRo3oiDQW9GX6qlKFNFrMACSuHuPsZabYOxHczAqpymP4R4JUOZZ/fPS
 bnqH/TRAeRN5TRwlT5XAyQ==;
Date: Sat, 06 Jan 2024 08:54:24 +0200
Message-Id: <83zfxjt0in.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <E2A1F4CF-2AC7-4772-8398-4A64EB5B40BB@HIDDEN> (message from
 Jeremy Phelps on Fri, 5 Jan 2024 15:13:43 -0500)
References: <CA+-17hVu9_kOZi=gRm+WuuTQwZ1tTSA5GoEoPhZ4FB8mCM9Qtw@HIDDEN>
 <83zfxkuhlp.fsf@HIDDEN> <E2A1F4CF-2AC7-4772-8398-4A64EB5B40BB@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[Please use Reply All to reply, to keep the bug tracker CC'ed.]

> From: Jeremy Phelps <jeremyphelps077@HIDDEN>
> Date: Fri, 5 Jan 2024 15:13:43 -0500
> 
> > If the above analysis is correct, then you can customize 'server-name'
> > to be an absolute file name of the directory where you want the socket
> > to be created, and invoke emacsclient with the --socket-name=NAME
> > option (or set EMACS_SOCKET_NAME=NAME in the environment), where NAME
> > is the same directory as in the value of 'server-name' option.  Did
> > you try that?
> 
> I did not try that, and I wouldn't be able to test it without reinstalling Emacs
> to get rid of my workaround.

Well, I'd encourage you to try this, because if it works, then there
is a solution to this situation, and if it doesn't work, we need to
fix whatever prevents it from working.

> But given that XDG_RUNTIME_DIR is ephemeral, and
> the Emacs daemon assumes it is not, it makes little sense to use it. It would
> make more sense to create a directory under ~/.emacs.d if security is the
> reason for using the XDG directory instead of /tmp.

I hear you, but other people disagree.  Some don't need to leave the
Emacs daemon running when they log off, and some say (AFAIU) that the
XDG directories don't get deleted when they log off.  So we support
both methods, and the XDG support takes precedence because most users
prefer it, AFAIU.





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.