Changeset 2596 for neercs/trunk
- Timestamp:
- Jul 27, 2008, 9:08:41 PM (14 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/attach.c
r2592 r2596 29 29 dir = "/tmp"; 30 30 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"); 32 32 return path; 33 33 } … … 128 128 129 129 if(session_name && strlen(session_name)+strlen(dir)+13<PATH_MAX) 130 sprintf(pattern, "%s/neercs.%s.s ock", dir, session_name);130 sprintf(pattern, "%s/neercs.%s.srv.sock", dir, session_name); 131 131 else 132 snprintf(pattern, PATH_MAX, "%s/neercs.*.s ock", dir);132 snprintf(pattern, PATH_MAX, "%s/neercs.*.srv.sock", dir); 133 133 pattern[PATH_MAX] = '\0'; 134 134 -
neercs/trunk/src/main.c
r2595 r2596 263 263 screen_list->s_socket_path = strdup(sockets[i]); 264 264 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 } 265 272 debug("Connected to session %s", session); 266 273 if(session)
Note: See TracChangeset
for help on using the changeset viewer.