read_polls[i].fd = -1;
close_sockets (void){  int i;  if (debug_flag)    dbg_log (_("close_sockets called"));  pthread_mutex_lock (&sock_lock);  /* Close sockets.  */  for (i = 0; i < MAX_NUM_CONNECTIONS; ++i)    if (sock[i] != 0)      {	if (close (sock[i]))	  dbg_log (_("socket [%d|%d] close: %s"), strerror (errno));	sock[i] = 0;	--socks_active;      }  pthread_mutex_unlock (&sock_lock);}