[Midnightbsd-cvs] [MidnightBSD/mports] 6719e5: x11-wm/mutter: fix BSD Xwayland listen-fd ownershi...
Lucas Holt
noreply at github.com
Tue Sep 29 13:48:32 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 6719e5e83749e424e39e700c1aeb886bdc5dc682
https://github.com/MidnightBSD/mports/commit/6719e5e83749e424e39e700c1aeb886bdc5dc682
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M x11-wm/mutter/files/patch-src_wayland_meta-xwayland.c
Log Message:
-----------
x11-wm/mutter: fix BSD Xwayland listen-fd ownership (#1645)
On non-Linux systems, Mutter cannot bind the Linux abstract X11 socket.
The existing portability patch assigned the same UNIX socket descriptor
to both Xwayland listen-fd ownership slots. This change duplicates that
descriptor with `dup(2)`, so the two slots can be passed and closed
independently. It also initializes and conditionally closes the abstract
descriptor on the BSD error path.
Validation:
- `bmake clean patch`
- `bmake build`
- `bmake package` (Mutter 47.10,1)
## Summary by Sourcery
Fix Xwayland listen-fd ownership on BSD systems so socket descriptors
can be passed and closed independently.
Bug Fixes:
- Fix BSD Xwayland socket setup by giving the abstract and UNIX
listen-fd ownership slots independent descriptors.
- Handle BSD socket initialization, duplication failures, and cleanup
safely.
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list