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

Diff for /src/usr.bin/ssh/mux.c between version 1.79 and 1.80

version 1.79, 2019/01/19 21:35:25 version 1.80, 2019/06/28 13:35:04
Line 1479 
Line 1479 
                         return -1;                          return -1;
                 }                  }
                 len = read(fd, p + have, need - have);                  len = read(fd, p + have, need - have);
                 if (len < 0) {                  if (len == -1) {
                         switch (errno) {                          switch (errno) {
                         case EAGAIN:                          case EAGAIN:
                                 (void)poll(&pfd, 1, -1);                                  (void)poll(&pfd, 1, -1);
Line 1525 
Line 1525 
                         return -1;                          return -1;
                 }                  }
                 len = write(fd, ptr + have, need - have);                  len = write(fd, ptr + have, need - have);
                 if (len < 0) {                  if (len == -1) {
                         switch (errno) {                          switch (errno) {
                         case EAGAIN:                          case EAGAIN:
                                 (void)poll(&pfd, 1, -1);                                  (void)poll(&pfd, 1, -1);
Line 2303 
Line 2303 
                 fatal("ControlPath too long ('%s' >= %u bytes)", path,                  fatal("ControlPath too long ('%s' >= %u bytes)", path,
                      (unsigned int)sizeof(addr.sun_path));                       (unsigned int)sizeof(addr.sun_path));
   
         if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)          if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1)
                 fatal("%s socket(): %s", __func__, strerror(errno));                  fatal("%s socket(): %s", __func__, strerror(errno));
   
         if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {          if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80