diff options
Diffstat (limited to 'os/connection.c')
-rw-r--r-- | os/connection.c | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/os/connection.c b/os/connection.c index 3ff93bbb6..26778c1b0 100644 --- a/os/connection.c +++ b/os/connection.c @@ -47,7 +47,7 @@ SOFTWARE. /***************************************************************** * Stuff to create connections --- OS dependent * - * EstablishNewConnections, CreateWellKnownSockets, ResetWellKnownSockets, + * EstablishNewConnections, CreateWellKnownSockets, * CloseDownConnection, CheckConnections, AddEnabledDevice, * RemoveEnabledDevice, OnlyListToOneClient, * ListenToAllClients, @@ -433,57 +433,6 @@ CreateWellKnownSockets(void) } void -ResetWellKnownSockets (void) -{ - int i; - - ResetOsBuffers(); - - for (i = 0; i < ListenTransCount; i++) - { - int status = _XSERVTransResetListener (ListenTransConns[i]); - - if (status != TRANS_RESET_NOOP) - { - if (status == TRANS_RESET_FAILURE) - { - /* - * ListenTransConns[i] freed by xtrans. - * Remove it from out list. - */ - - FD_CLR (ListenTransFds[i], &WellKnownConnections); - ListenTransFds[i] = ListenTransFds[ListenTransCount - 1]; - ListenTransConns[i] = ListenTransConns[ListenTransCount - 1]; - ListenTransCount -= 1; - i -= 1; - } - else if (status == TRANS_RESET_NEW_FD) - { - /* - * A new file descriptor was allocated (the old one was closed) - */ - - int newfd = _XSERVTransGetConnectionNumber (ListenTransConns[i]); - - FD_CLR (ListenTransFds[i], &WellKnownConnections); - ListenTransFds[i] = newfd; - FD_SET(newfd, &WellKnownConnections); - } - } - } - - ResetAuthorization (); - ResetHosts(display); - /* - * restart XDMCP - */ -#ifdef XDMCP - XdmcpReset (); -#endif -} - -void CloseWellKnownConnections(void) { int i; |