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

Diff for /src/usr.bin/ssh/packet.c between version 1.4 and 1.5

version 1.4, 1999/09/30 05:03:04 version 1.5, 1999/09/30 05:11:29
Line 101 
Line 101 
 packet_set_nonblocking()  packet_set_nonblocking()
 {  {
   /* Set the socket into non-blocking mode. */    /* Set the socket into non-blocking mode. */
 #if defined(O_NONBLOCK) && !defined(O_NONBLOCK_BROKEN)  
   if (fcntl(connection_in, F_SETFL, O_NONBLOCK) < 0)    if (fcntl(connection_in, F_SETFL, O_NONBLOCK) < 0)
     error("fcntl O_NONBLOCK: %.100s", strerror(errno));      error("fcntl O_NONBLOCK: %.100s", strerror(errno));
 #else /* O_NONBLOCK && !O_NONBLOCK_BROKEN */  
   if (fcntl(connection_in, F_SETFL, O_NDELAY) < 0)  
     error("fcntl O_NDELAY: %.100s", strerror(errno));  
 #endif /* O_NONBLOCK && !O_NONBLOCK_BROKEN */  
   
   if (connection_out != connection_in)    if (connection_out != connection_in)
     {      {
 #if defined(O_NONBLOCK) && !defined(O_NONBLOCK_BROKEN)  
       if (fcntl(connection_out, F_SETFL, O_NONBLOCK) < 0)        if (fcntl(connection_out, F_SETFL, O_NONBLOCK) < 0)
         error("fcntl O_NONBLOCK: %.100s", strerror(errno));          error("fcntl O_NONBLOCK: %.100s", strerror(errno));
 #else /* O_NONBLOCK && !O_NONBLOCK_BROKEN */  
       if (fcntl(connection_out, F_SETFL, O_NDELAY) < 0)  
         error("fcntl O_NDELAY: %.100s", strerror(errno));  
 #endif /* O_NONBLOCK && !O_NONBLOCK_BROKEN */  
     }      }
 }  }
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5