diff options
author | Daniel Llewellyn <daniel@bowlhat.net> | 2020-01-29 21:33:24 +0000 |
---|---|---|
committer | Daniel Llewellyn <daniel@bowlhat.net> | 2020-01-29 21:39:53 +0000 |
commit | 578371616e09364318c9fb2371a693d438b31b29 (patch) | |
tree | da6f3736134e1244d44c523b14bfcea8e989bd9e /os/io.c | |
parent | b6a5389e1789d63c6c61983b973b8559953afc88 (diff) | |
download | xserver-578371616e09364318c9fb2371a693d438b31b29.tar.gz |
os: Ignore dying client in ResetCurrentRequest
You might as well, it's harmless. Better, some cleanup code (like DRI2
swap wait) needs to run both normally and at client exit, so it
simplifies the callers to not need to check first. See 4308f5d3 for a
similar example.
Props: @ajax (Adam Jackson)
Fixes: xorg/xserver#211
Signed-off-by: Daniel Llewellyn <diddledan@ubuntu.com>
Diffstat (limited to 'os/io.c')
-rw-r--r-- | os/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -557,6 +557,11 @@ void ResetCurrentRequest(ClientPtr client) { OsCommPtr oc = (OsCommPtr) client->osPrivate; + + /* ignore dying clients */ + if (!oc) + return; + register ConnectionInputPtr oci = oc->input; register xReq *request; int gotnow, needed; |