Subject: bug#44644: /tmp/emacs0/ not cleaned up upon exit

From: Eli Zaretskii <[email-masked]>
Date: Tue, 17 Nov 2020 17:00:03 +0200

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Tue, 17 Nov 2020 00:06:43 +0100
> Cc: [email-masked]
> 
> 積丹尼 Dan Jacobson <[email-masked]> writes:
> 
> > Anyway leaving empty directories around after exit is bad when not root too.
> 
> True.  Looking at the code, it looks like having `server-start' add
> `server-force-delete' to `kill-emacs-query-functions' would do the
> trick?
> 
> Does anybody see any downsides to doing that?

What if the Emacs that's being killed is not the one that created the
server file?