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

Diff for /src/usr.bin/ssh/channels.c between version 1.297 and 1.298

version 1.297, 2009/10/28 16:38:18 version 1.298, 2009/11/10 04:30:44
Line 50 
Line 50 
 #include <arpa/inet.h>  #include <arpa/inet.h>
   
 #include <errno.h>  #include <errno.h>
   #include <fcntl.h>
 #include <netdb.h>  #include <netdb.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 227 
Line 228 
         channel_max_fd = MAX(channel_max_fd, wfd);          channel_max_fd = MAX(channel_max_fd, wfd);
         channel_max_fd = MAX(channel_max_fd, efd);          channel_max_fd = MAX(channel_max_fd, efd);
   
         /* XXX set close-on-exec -markus */          if (rfd != -1)
                   fcntl(rfd, F_SETFD, FD_CLOEXEC);
           if (wfd != -1 && wfd != rfd)
                   fcntl(wfd, F_SETFD, FD_CLOEXEC);
           if (efd != -1 && efd != rfd && efd != wfd)
                   fcntl(efd, F_SETFD, FD_CLOEXEC);
   
         c->rfd = rfd;          c->rfd = rfd;
         c->wfd = wfd;          c->wfd = wfd;

Legend:
Removed from v.1.297  
changed lines
  Added in v.1.298