@@ -46,7 +46,7 @@ SOFTWARE.
4646/*****************************************************************
4747 * Stuff to create connections --- OS dependent
4848 *
49- * EstablishNewConnections, CreateWellKnownSockets, ResetWellKnownSockets,
49+ * EstablishNewConnections, CreateWellKnownSockets
5050 * CloseDownConnection,
5151 * OnlyListToOneClient,
5252 * ListenToAllClients,
@@ -309,54 +309,6 @@ CreateWellKnownSockets(void)
309309#endif
310310}
311311
312- void
313- ResetWellKnownSockets (void )
314- {
315- int i ;
316-
317- ResetOsBuffers ();
318-
319- for (i = 0 ; i < ListenTransCount ; i ++ ) {
320- int status = _XSERVTransResetListener (ListenTransConns [i ]);
321-
322- if (status != TRANS_RESET_NOOP ) {
323- if (status == TRANS_RESET_FAILURE ) {
324- /*
325- * ListenTransConns[i] freed by xtrans.
326- * Remove it from out list.
327- */
328-
329- RemoveNotifyFd (ListenTransFds [i ]);
330- ListenTransFds [i ] = ListenTransFds [ListenTransCount - 1 ];
331- ListenTransConns [i ] = ListenTransConns [ListenTransCount - 1 ];
332- ListenTransCount -= 1 ;
333- i -= 1 ;
334- }
335- else if (status == TRANS_RESET_NEW_FD ) {
336- /*
337- * A new file descriptor was allocated (the old one was closed)
338- */
339-
340- int newfd = _XSERVTransGetConnectionNumber (ListenTransConns [i ]);
341-
342- ListenTransFds [i ] = newfd ;
343- }
344- }
345- }
346- for (i = 0 ; i < ListenTransCount ; i ++ )
347- SetNotifyFd (ListenTransFds [i ], EstablishNewConnections , X_NOTIFY_READ ,
348- NULL );
349-
350- ResetAuthorization ();
351- ResetHosts (display );
352- /*
353- * restart XDMCP
354- */
355- #ifdef XDMCP
356- XdmcpReset ();
357- #endif
358- }
359-
360312void
361313CloseWellKnownConnections (void )
362314{
0 commit comments