mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-02 03:15:52 +00:00
Get rid of the rest of the FD passing code when XTRANS_SEND_FDS isn't set
req_fds and SetReqFds in include/dixstruct.h ReadFdFromClient, WriteFdToClient and the FD flushing in os/io.c Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
a239e6faf3
commit
fc84166e65
3 changed files with 10 additions and 0 deletions
|
|
@ -110,15 +110,19 @@ typedef struct _Client {
|
|||
|
||||
DeviceIntPtr clientPtr;
|
||||
ClientIdPtr clientIds;
|
||||
#if XTRANS_SEND_FDS
|
||||
int req_fds;
|
||||
#endif
|
||||
} ClientRec;
|
||||
|
||||
#if XTRANS_SEND_FDS
|
||||
static inline void
|
||||
SetReqFds(ClientPtr client, int req_fds) {
|
||||
if (client->req_fds != 0 && req_fds != client->req_fds)
|
||||
LogMessage(X_ERROR, "Mismatching number of request fds %d != %d\n", req_fds, client->req_fds);
|
||||
client->req_fds = req_fds;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Scheduling interface
|
||||
|
|
|
|||
Loading…
Reference in a new issue