summaryrefslogtreecommitdiff
path: root/src/xcbint.h
diff options
context:
space:
mode:
authorThomas Anderson <thomasanderson@google.com>2020-12-02 00:25:42 +0000
committerThomas Anderson <thomasanderson@google.com>2021-09-30 23:32:35 +0000
commit233d7b7f1f03ef18bf3955eb1f20421e745d22f0 (patch)
tree831f37e3bacb262e673d03cd9cbcdb44ebeb710c /src/xcbint.h
parentdc2811874729ee83fa2aef110f60808c450f9a5a (diff)
Fix hang in xcb_request_check()
This fixes https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/53 The issue was that libxcb expected to get a reply based on the request_expected variable, but a reply would never arrive because the request was never actually written. To resolve this, a separate request_expected_written variable is added.
Diffstat (limited to 'src/xcbint.h')
-rw-r--r--src/xcbint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xcbint.h b/src/xcbint.h
index 6a070f8..235c848 100644
--- a/src/xcbint.h
+++ b/src/xcbint.h
@@ -113,6 +113,7 @@ typedef struct _xcb_out {
uint64_t request;
uint64_t request_written;
+ uint64_t request_expected_written;
uint64_t total_written;
pthread_mutex_t reqlenlock;