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 ?
I have not heard any, and do not have any myself, or I would have proposed them already.