xorg-x11-server/p_xkills_wrong_client.diff

17 lines
706 B
Diff
Raw Normal View History

Index: programs/Xserver/os/connection.c
===================================================================
RCS file: /work/cvsdir/cvs/xc/programs/Xserver/os/connection.c,v
retrieving revision 1.1.1.35
diff -u -r1.1.1.35 connection.c
--- programs/Xserver/os/connection.c 13 Sep 2005 10:31:37 -0000 1.1.1.35
+++ programs/Xserver/os/connection.c 1 Mar 2006 11:00:20 -0000
@@ -1134,7 +1134,7 @@
FD_ZERO(&tmask);
FD_SET(curclient, &tmask);
r = Select (curclient + 1, &tmask, NULL, NULL, &notime);
- if (r < 0)
+ if (r < 0 && (errno == EBADF))
CloseDownClient(clients[ConnectionTranslation[curclient]]);
mask &= ~((fd_mask)1 << curoff);
}