- 10 May, 2022 5 commits
-
-
Xwayland can optionally be socket-activated by the Wayland compositor, in which case it would use only the sockets provided by the compositor. However, that prevents other transport protocol from working, because when it's given a socket from the Wayland compositor, it would disable all other connections and rely solely on the given socket. Change `MakeAllCOTSServerListeners` to allow for partial connections so that if `partial` is set to a non-zero value by the caller, we do not bail out in the address is already in use. That allows the continue trying with other protocols even if the local conenction fails (as this is already handled by the socket from the Wayland compositor). Related: xorg/xserver#817 Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Ray Strode authored
If a machine is booted with ipv6.disable=1, trying to bind to an AF_INET6 socket will fail with AFNOSUPPORT. The tcp transport automatically falls back to ipv4 in this case, but the more specific inet6 transport just fails. This failure leads to MakeAllCOTSServerListeners returning a partial success. Unfortunately, the X server can't really contiue with partial successes from this function if -displayfd is in use, since that would, in other cases, potentially lead to the -displayfd electing a display number that is potentially partially in use by a rogue program. This commit addresses the issue by automatically disabling transports when they fail with AFNOSUPPORT, leading them to get ignored, rather than proceeding and ultimately returning from MakeAllCOTSServerListerns with partial=TRUE.
-
- 14 Oct, 2019 1 commit
-
-
Adam Jackson authored
This didn't even correspond to any of the testing protocol extensions! Apparently there used to be some test programs in xtrans itself, and they've not been a thing since 1994: https://cgit.freedesktop.org/~alanc/xc-historical/commit/?id=73bf4832c427855b2ce111d47dd1f181564b8d06 Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 30 Sep, 2019 3 commits
-
-
Adam Jackson authored
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Adam Jackson authored
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Adam Jackson authored
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 16 Mar, 2019 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 08 Dec, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 20 Nov, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 01 Oct, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 25 Aug, 2018 2 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
We shouldn't be calling the LocalEndTransports routine twice, but just make sure if we do, we don't call free twice on the same pointer. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 25 Mar, 2018 1 commit
-
-
https://bugs.freedesktop.org/show_bug.cgi?id=99882 Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 26 Jan, 2017 2 commits
-
-
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Syncs the invocation of configure with the one from the server. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
- 11 Sep, 2016 1 commit
-
-
Jeremy Huddleston Sequoia authored
xorg-server moved from HAS_STRLCPY to HAVE_STRLCPY in 2011 cf-xserver: d829a7c5cb42c979b58f3547136df5b05d906423 Signed-off-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-
- 01 Sep, 2016 1 commit
-
-
Adam Jackson authored
<anholt> ajax: 75419e6b of xtrans also seems to have broken xtest. And indeed it does, xts5 knows a fair amount about xlib internals for some reason. Whether that's cromulent or not, we want to be able to run automatic tests from top-of-tree, so we can't leave this broken. This reverts commit 75419e6b . Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 19 May, 2016 4 commits
-
-
Adam Jackson authored
Again, pre-xcb libX11 was the only consumer. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Adam Jackson authored
libX11 used to need this in the XOpenDisplay code, but hasn't since xcb became mandatory. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Adam Jackson authored
LBX is dead, and TEST_t is unused. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
Adam Jackson authored
Never been used, as far as I can tell. Reviewed-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 18 May, 2016 1 commit
-
-
Adam Jackson authored
Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 04 Dec, 2015 1 commit
-
-
Alan Coopersmith authored
No other x86 SysV platforms have ever been supported in the modular build systems, so we don't need to keep carrying around a bunch of ifdef's for them. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Mark Kettenis <kettenis@openbsd.org>
-
- 28 Nov, 2015 1 commit
-
-
Globally replace #ifdef and #if defined usage of 'sun' with '__sun' such that strict ISO compiler modes such as -ansi or -std=c99 can be used. Signed-off-by:
Richard PALO <richard@NetBSD.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 25 Sep, 2015 1 commit
-
-
Julien Cristau authored
Xtrans.h defines BytesReadable_t as int or long depending on whether LONG64 is defined. We need to make sure Xmd.h is included so our idea of BytesReadable_t is consistent across compilation units. Debian bug#749120 Reported-by:
Michael Tautschnig <mt@debian.org> Signed-off-by:
Julien Cristau <jcristau@debian.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 20 Sep, 2014 1 commit
-
-
Keith Packard authored
Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 13 Sep, 2014 1 commit
-
-
Keith Packard authored
This will allow a server to disable listeners by default and then let later configuration re-enable them. In particular, this lets the X server disable inet and unix listen sockets by default while still providing a '-listen' command line option to re-enable them later on. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
- 24 Aug, 2014 3 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Required also changing receive_listening_fds to specify port as const, which we can do now that TRANS(ReopenCOTSServer) takes it as const. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Also required constifying UnixHostReallyLocal, since SocketUNIXConnect passes the host arg through to it. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 Aug, 2014 4 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Required also adding const to static TRANS(ParseAddress) function which they pass the address arg to for parsing. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Missed when the code was updated in commit eb9a8904 . Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 31 Mar, 2014 2 commits
-
-
Hans de Goede authored
Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Mark Kettenis authored
Some systems provide a really small default buffer size for UNIX sockets. Bump it up to 64k if necessary such that large transfers (such as XGetImage() on a 8-megapixel image) don't take tens of seconds. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
- 26 Mar, 2014 1 commit
-
-
Thomas Klausner authored
Reviewed-by:
Mark Kettenis <kettenis@openbsd.org> Signed-off-by:
Thomas Klausner <wiz@NetBSD.org>
-