[BACK]Return to client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/client.c between version 1.77 and 1.78

version 1.77, 2014/01/09 14:05:55 version 1.78, 2014/01/09 21:20:45
Line 118 
Line 118 
                 close(fd);                  close(fd);
   
                 xasprintf(&lockfile, "%s.lock", path);                  xasprintf(&lockfile, "%s.lock", path);
                 if ((lockfd = client_get_lock(lockfile)) == -1)                  if ((lockfd = client_get_lock(lockfile)) == -1) {
                           free(lockfile);
                         goto retry;                          goto retry;
                 if (unlink(path) != 0 && errno != ENOENT)                  }
                   if (unlink(path) != 0 && errno != ENOENT) {
                           free(lockfile);
                           close(lockfd);
                         return (-1);                          return (-1);
                   }
                 fd = server_start(lockfd, lockfile);                  fd = server_start(lockfd, lockfile);
                 free(lockfile);                  free(lockfile);
                 close(lockfd);                  close(lockfd);

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78