diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-06-30 07:59:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-30 07:59:04 -0700 |
commit | 28e33ae6f69f716ece5d68e63fc52557236c5f6e (patch) | |
tree | 9543ef519cac20b6e1c66ac2fbe1ea047e7edb0e /include/dixstruct.h | |
parent | 018c878e9495b21146c8f38617fdd1bf6d8cc73b (diff) |
OS support: fix writeable client vs IgnoreClient behavior
When ResetCurrentRequest is called, or IgnoreClient is called when a
client has input pending, IgnoredClientsWithInput will be set. However,
a subsequent IgnoreClient request will clear the client fd from that fd
set, potentially causing the client to hang.
So add an Ignore/Attend count, and only apply the ignore logic on the
first ignore and the attend logic on the last attend. This is
consistent with the comments for these functions; callers must pair
them.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=27035.
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/dixstruct.h')
-rw-r--r-- | include/dixstruct.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dixstruct.h b/include/dixstruct.h index 96104275d..efa2577f8 100644 --- a/include/dixstruct.h +++ b/include/dixstruct.h @@ -98,6 +98,7 @@ typedef struct _Client { int clientGone; int noClientException; /* this client died or needs to be * killed */ + int ignoreCount; /* count for Attend/IgnoreClient */ SaveSetElt *saveSet; int numSaved; int (**requestVector) ( |