Ignore:
Timestamp:
07/27/08 21:08:41 (5 years ago)
Author:
pterjan
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.