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: Fri, 27 Nov 2020 10:12:17 +0200 Message-ID: <83k0u7p6am.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> <83sg8wqlpw.fsf@gnu.org> <87zh33kzox.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29384"; 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 Fri Nov 27 09:13:10 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 1kiYsQ-0007YE-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 09:13:10 +0100 Original-Received: from localhost ([::1]:33814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiYsO-0005vP-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 03:13:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiYsI-0005vF-25 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 03:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiYsH-0002np-Rf for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 03:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiYsH-0001gA-NZ for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 03:13: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: Fri, 27 Nov 2020 08:13: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.16064647616422 (code B ref 44644); Fri, 27 Nov 2020 08:13:01 +0000 Original-Received: (at 44644) by debbugs.gnu.org; 27 Nov 2020 08:12:41 +0000 Original-Received: from localhost ([127.0.0.1]:43801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiYrx-0001fW-4o for submit@debbugs.gnu.org; Fri, 27 Nov 2020 03:12:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiYrv-0001fK-6A for 44644@debbugs.gnu.org; Fri, 27 Nov 2020 03:12:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32942) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiYrp-0002eU-VT; Fri, 27 Nov 2020 03:12:33 -0500 Original-Received: from [176.228.60.248] (port=2033 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiYrp-0001pf-CK; Fri, 27 Nov 2020 03:12:33 -0500 In-Reply-To: <87zh33kzox.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 27 Nov 2020 08:48:30 +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:194407 Archived-At: > From: Lars Ingebrigtsen > Cc: jidanni@jidanni.org, 44644@debbugs.gnu.org > Date: Fri, 27 Nov 2020 08:48:30 +0100 > > Eli Zaretskii writes: > > > 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? > > Did you mean server-socket-dir instead of server-dir here? Yes, sorry. > Yes, I guess that'd be possible, but the user may change > server-socket-dir without changing the property... > > We could literally just check whether the parent of server-socket-dir is > "/tmp" and only delete then. It'd be pretty defensive, but should fix > this minor annoyance. If no better ideas come to mind, yes. I actually don't share the feeling of an annoyance here: /tmp is regularly cleaned up anyway, right? But that's me.