mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
os: Use NotifyFd interface for listen descriptors
Replace the custom path for dealing with new incoming connections with the general-purpose NotifyFd API. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
committed by
Adam Jackson
parent
1df07dc36c
commit
7b02f0b87e
@@ -311,10 +311,6 @@ WaitForSomething(int *pClientsReady)
|
||||
|
||||
XFD_ANDSET(&devicesReadable, &LastSelectMask, &EnabledDevices);
|
||||
XFD_ANDSET(&clientsReadable, &LastSelectMask, &AllClients);
|
||||
XFD_ANDSET(&tmp_set, &LastSelectMask, &WellKnownConnections);
|
||||
if (XFD_ANYSET(&tmp_set))
|
||||
QueueWorkProc(EstablishNewConnections, NULL,
|
||||
(void *) &LastSelectMask);
|
||||
|
||||
XFD_ANDSET(&tmp_set, &LastSelectMask, &NotifyReadFds);
|
||||
if (XFD_ANYSET(&tmp_set) || someNotifyWriteReady)
|
||||
|
||||
Reference in New Issue
Block a user