mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 22:20:06 +01:00
CheckConnections: don't close down the server client (bug #7876)
When an appgroup is shutting down, the list of clients can change, so make
sure we're not trying to shut the server down.
(cherry picked from b5d09d4adb commit)
This commit is contained in:
parent
be91a981df
commit
22bccea8dc
1 changed files with 1 additions and 1 deletions
|
|
@ -1019,7 +1019,7 @@ CheckConnections(void)
|
|||
FD_ZERO(&tmask);
|
||||
FD_SET(curclient, &tmask);
|
||||
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
||||
if (r < 0)
|
||||
if (r < 0 && GetConnectionTranslation(curclient) > 0)
|
||||
CloseDownClient(clients[GetConnectionTranslation(curclient)]);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue