Fix open port for X11 applications (#18583)
commit635834566782b1e9fa3fc52ee8a0ceca9885c18e
authorfelixdoerre <felixdoerre@users.noreply.github.com>
Mon, 27 Jan 2020 13:32:15 +0000 (27 14:32 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 27 Jan 2020 13:32:15 +0000 (27 14:32 +0100)
tree7fdcc967a491ac7f306c619178abb26a0fed1a03
parentba3b6a169bc221d93de967755a66afb7f1c2949e
Fix open port for X11 applications (#18583)

Whenever mono opens an X11 window, the application opens a tcp socket for controlling the (non-tcp)-connection to X11. This is bad practice, as a tcp socket is not needed.

This pull request cleans the logic, by replacing the tcp socket with a fifo. That way this loopback connection is not visible from outside the .NET application, and all logic surrounding it should remain unchanged.
mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs