mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 00:10:09 +01:00
OS: Connection: Don't shut down disappeared clients (bug #7876)
If a client disappears in the middle of CheckConnections (presumably
because its appgroup leader disappears), then don't attempt to shut it down
a second time, when it's already vanished.
(cherry picked from commit d8b2cad377)
This commit is contained in:
parent
25d26b55e7
commit
90649e6a39
1 changed files with 2 additions and 1 deletions
|
|
@ -1008,7 +1008,8 @@ CheckConnections(void)
|
|||
FD_SET(curclient, &tmask);
|
||||
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
||||
if (r < 0)
|
||||
CloseDownClient(clients[ConnectionTranslation[curclient]]);
|
||||
if (ConnectionTranslation[curclient] > 0)
|
||||
CloseDownClient(clients[ConnectionTranslation[curclient]]);
|
||||
mask &= ~((fd_mask)1 << curoff);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue