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/attach.c

    r2592 r2596  
    2929        dir = "/tmp";
    3030    if(path)
    31         snprintf(path, PATH_MAX+1, "%s/neercs.%s%s.sock", dir, session_name, client?"-clt":"");
     31        snprintf(path, PATH_MAX+1, "%s/neercs.%s%s.sock", dir, session_name, client?"":".srv");
    3232    return path;
    3333}
     
    128128
    129129    if(session_name && strlen(session_name)+strlen(dir)+13<PATH_MAX)
    130         sprintf(pattern, "%s/neercs.%s.sock", dir, session_name);
     130        sprintf(pattern, "%s/neercs.%s.srv.sock", dir, session_name);
    131131    else
    132         snprintf(pattern, PATH_MAX, "%s/neercs.*.sock", dir);
     132        snprintf(pattern, PATH_MAX, "%s/neercs.*.srv.sock", dir);
    133133    pattern[PATH_MAX] = '\0';
    134134
Note: See TracChangeset for help on using the changeset viewer.