Ignore:
Timestamp:
Jul 27, 2008, 9:08:41 PM (13 years ago)
Author:
Pascal Terjan
Message:
  • Suffix the server socket, it's on them that we glob
  • If the last socket does not work, try the previous ones
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r2595 r2596  
    263263            screen_list->s_socket_path = strdup(sockets[i]);
    264264            session = connect_server(screen_list);
     265            while(!session && i > 0)
     266            {
     267                free(screen_list->s_socket_path);
     268                i--;
     269                screen_list->s_socket_path = strdup(sockets[i]);
     270                session = connect_server(screen_list);
     271            }
    265272            debug("Connected to session %s", session);
    266273            if(session)
Note: See TracChangeset for help on using the changeset viewer.