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#44644: /tmp/emacs0/ not cleaned up upon exit Date: Thu, 26 Nov 2020 15:41:31 +0200 Message-ID: <83sg8wqlpw.fsf@gnu.org> References: <87a6vjk9ep.8.fsf@jidanni.org> <87y2j0sxz0.fsf@gnus.org> <83zh3gqb9o.fsf@gnu.org> <87sg8zcnu0.fsf@gnus.org> <83y2iqu646.fsf@gnu.org> <877dqa2cbz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44644@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 14:43:15 2020 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 1kiHYI-0004JZ-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 14:43:14 +0100 Original-Received: from localhost ([::1]:37470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiHYH-000145-5Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 08:43:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiHY6-00013v-96 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 08:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiHY5-0008Uw-OG for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 08:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiHY5-00030I-Mv for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 08:43: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: Thu, 26 Nov 2020 13:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44644 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 44644-submit@debbugs.gnu.org id=B44644.160639812211477 (code B ref 44644); Thu, 26 Nov 2020 13:43:01 +0000 Original-Received: (at 44644) by debbugs.gnu.org; 26 Nov 2020 13:42:02 +0000 Original-Received: from localhost ([127.0.0.1]:40233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiHX8-0002z3-7h for submit@debbugs.gnu.org; Thu, 26 Nov 2020 08:42:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiHX4-0002yY-Tu for 44644@debbugs.gnu.org; Thu, 26 Nov 2020 08:42:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42008) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiHWx-000894-QG; Thu, 26 Nov 2020 08:41:52 -0500 Original-Received: from [176.228.60.248] (port=1206 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiHWx-0000oP-93; Thu, 26 Nov 2020 08:41:51 -0500 In-Reply-To: <877dqa2cbz.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 25 Nov 2020 07:13:36 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:194318 Archived-At: > From: Lars Ingebrigtsen > Cc: jidanni@jidanni.org, 44644@debbugs.gnu.org > Date: Wed, 25 Nov 2020 07:13:36 +0100 > > Eli Zaretskii writes: > > > I don't think it's kosher to delete $XDG_RUNTIME_DIR, even if it's > > empty, since it is probably used by more than the server? And if > > XDG_RUNTIME_DIR is not defined, and we use a directory under /tmp, > > then the system cleans that up from time to time, doesn't it? > > > > So bottom line, I don't think we should do this, at least not > > unconditionally. > > You raise some very good points. Perhaps the only case where deleting > the directory is the one described in the subject? I.e., when the > server directory has been created in `temporary-file-directory'? At most, yes. The problem is, it isn't easy to know when the directory is under /tmp (we don't use temporary-file-directory, for the reasons explained in the comment to server-socket-dir). Maybe we should put some special property on server-dir when that is the case?