mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01:00
os: Mark client as ready to read when closing due to write failure [100863]
This makes sure the server will go look at the client again, notice
that the FD is no longer valid and close the client down.
Bugzilla: https://bugs.freedesktop.org/100863
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit e2f68296ff)
This commit is contained in:
parent
7a2525fba6
commit
d808b57399
1 changed files with 5 additions and 1 deletions
6
os/io.c
6
os/io.c
|
|
@ -636,7 +636,10 @@ SetCriticalOutputPending(void)
|
|||
/*****************
|
||||
* AbortClient:
|
||||
* When a write error occurs to a client, close
|
||||
* the connection and clean things up.
|
||||
* the connection and clean things up. Mark
|
||||
* the client as 'ready' so that the server will
|
||||
* try to read from it again, notice that the fd is
|
||||
* closed and clean up from there.
|
||||
*****************/
|
||||
|
||||
static void
|
||||
|
|
@ -648,6 +651,7 @@ AbortClient(ClientPtr client)
|
|||
_XSERVTransDisconnect(oc->trans_conn);
|
||||
_XSERVTransClose(oc->trans_conn);
|
||||
oc->trans_conn = NULL;
|
||||
mark_client_ready(client);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue