On Wed Mar 26 23:52:43 2025 +0000, Ralf Habacker wrote:
The main reason for the problems with the current implementation in wineserver is mentioned on https://gitlab.winehq.org/wine/wine/-/merge_requests/2786#note_38573:
I do agree that the file deletion code is a bit hacky, but a lot of
the file handling code in wineserver depends on having a valid file descriptor, and we can't `open()` the socket file. This was the simplest way I could find to make socket file deletion work. Are there any concrete suggestions as to how the wineserver should be modified to make this easier to implement ?
See https://gitlab.winehq.org/wine/wine/-/merge_requests/7650/diffs?commit_id=bd... for my attempt to fix the problem. Select https://gitlab.winehq.org/wine/wine/-/merge_requests/7650/diffs and server/fd.c to see the full changes.