[Bug 253277] x11/xtrans: Don't unlink existing UNIX sockets => allows multiple X sessions from sddm

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Sep 2023 14:34:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253277

--- Comment #14 from Olivier Certner <olivier.freebsd@free.fr> ---
For the record, on "stale" socket files:
- Xorg has a signal handler to clean up sockets on abnormal termination.  So,
unless the process is killed with SIGKILL or something else is very wrong,
abnormal termination doesn't leave stale sockets.
- The automatic display selection ('-displayfd' and no explicit display ID
passed) will automatically skip the stale socket and associated display ID and
assign another ID.
- Reboot leads to socket cleanup, as Gleb pointed out.

That's why I've never had the slightest problem with this patch and why you
most probably won't either (unless you love to kill your Xorg and insist on
explicitly reusing such a killed display without an intervening reboot).

-- 
You are receiving this mail because:
You are the assignee for the bug.