[PATCH] os: Don't listen to 'tcp' or 'unix' by default. Add '-listen' option.

Mark Kettenis mark.kettenis at xs4all.nl
Fri Sep 12 14:54:58 PDT 2014


> From: Keith Packard <keithp at keithp.com>
> Date: Fri, 12 Sep 2014 11:35:41 -0700
> 
> This disables tcp and unix listen ports by default (the unix port is
> the non-abstract /tmp/.X11-unix port that xcb doesn't use). Then, it
> uses a new xtrans interface, TRANS(Listen), to provide a command line
> option to re-enable those if desired.

Hi Keith,

Looks like you're on my side of the fence on this issue ;).

Unconditionally disabling the "unix" listen ports by default might be
a step too far.  Abstract sockets are only available on Linux.  So on
other architectures (or at least the ones where LOCALCONN isn't
defined) this would leave us with no listen ports at all.  I may have
gotten lost in the #ifdef maze though...

> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>  os/utils.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)


More information about the xorg-devel mailing list