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

Diff for /src/usr.bin/ssh/misc.c between version 1.17 and 1.18

version 1.17, 2002/02/26 20:03:51 version 1.18, 2002/03/04 13:10:46
Line 65 
Line 65 
         debug("fd %d setting O_NONBLOCK", fd);          debug("fd %d setting O_NONBLOCK", fd);
         val |= O_NONBLOCK;          val |= O_NONBLOCK;
         if (fcntl(fd, F_SETFL, val) == -1)          if (fcntl(fd, F_SETFL, val) == -1)
                 if (errno != ENODEV)                  debug("fcntl(%d, F_SETFL, O_NONBLOCK): %s",
                         error("fcntl(%d, F_SETFL, O_NONBLOCK): %s",                      fd, strerror(errno));
                             fd, strerror(errno));  
 }  }
   
 void  void
Line 87 
Line 86 
         debug("fd %d clearing O_NONBLOCK", fd);          debug("fd %d clearing O_NONBLOCK", fd);
         val &= ~O_NONBLOCK;          val &= ~O_NONBLOCK;
         if (fcntl(fd, F_SETFL, val) == -1)          if (fcntl(fd, F_SETFL, val) == -1)
                 if (errno != ENODEV)                  debug("fcntl(%d, F_SETFL, O_NONBLOCK): %s",
                         error("fcntl(%d, F_SETFL, O_NONBLOCK): %s",                      fd, strerror(errno));
                             fd, strerror(errno));  
 }  }
   
 /* disable nagle on socket */  /* disable nagle on socket */

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18